文章详情页
java - Eclipse中的 “context root” 和 “content directory” 的作用是什么?
浏览:325日期:2023-10-18 09:01:19
问题描述
Eclipse中的 “context root” 和 “content directory” 的作用是什么?是tomcat使用的吗?
是在那里用到的
问题解答
回答1:root代表:'localhost:xxx'就是访问/tomcat/webapps/root/的项目
目录代表:'localhost:xxx/XXX'就是访问/tomcat/webapps/XXX的项目
回答2: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
标签:
java
相关文章:
1. python - 怎样在linux下开发flask web应用时查看代码出错(traceback)的地方。2. java - web端百度网盘的一个操作为什么要分两次请求服务器, 有什么好处吗3. 微博2输入框一些问题4. mysql - 表名称前缀到底有啥用?5. python中merge后文件莫名变得非常大6. mysql多表查询7. javascript - 如何为大量的sprite添加碰撞检测框?8. python - 运行django的时候出现这个django.core.exceptions.ValidationError9. mysql - 仅仅只是把单引号与反斜杠转义不用prepare statement能否避免sql注入?10. javascript - 手机点击input时,button会被顶上去?求解决!!!
排行榜

网公网安备