84669 人學習
152542 人學習
20005 人學習
5487 人學習
7821 人學習
359900 人學習
3350 人學習
180660 人學習
48569 人學習
18603 人學習
40936 人學習
1549 人學習
1183 人學習
32909 人學習
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
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是网站的根。
可以狭义理解为: