文章详情页
java - Eclipse中的 “context root” 和 “content directory” 的作用是什么?
浏览:174日期: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. MYSQL新建用户设置可以远程访问的问题2. python - 求一个在def中可以实现调用本def满足特定条件continue效果的方法(标题说不太清楚,请见题内描述)3. golang - 用IDE看docker源码时的小问题4. mysql - SQL操作时间的函数?5. docker网络端口映射,没有方便点的操作方法么?6. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””7. 正则表达式 - python pandas的sep参数问题8. javascript - ionic run android报错9. javascript - 用表单提交两个时间段请求后台返回对应数据时出现的一些问题!10. docker内创建jenkins访问另一个容器下的服务器问题
排行榜
