扫码关注官方订阅号
Eclipse中的 “context root” 和 “content directory” 的作用是什么?是tomcat使用的吗?
是在那里用到的
走同样的路,发现不同的人生
root代表:"localhost:xxx"就是访问/tomcat/webapps/root/的项目
目录代表:"localhost:xxx/XXX"就是访问/tomcat/webapps/XXX的项目
Context root: 编译后项目名称。对应Display-name。Content directory:项目文件根目录。存放html/jsp/images等目录的根。当访问http://caiyongji.com/index.html 时对应访问Content directory下index.html,也就是说Content directory是网站的根。
可以狭义理解为:
URL: ContextRoot/ContentDirectory/index.html
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
root代表:"localhost:xxx"就是访问/tomcat/webapps/root/的项目
目录代表:"localhost:xxx/XXX"就是访问/tomcat/webapps/XXX的项目
Context root: 编译后项目名称。对应Display-name。
Content directory:项目文件根目录。存放html/jsp/images等目录的根。当访问http://caiyongji.com/index.html 时对应访问Content directory下index.html,也就是说Content directory是网站的根。
可以狭义理解为: