文章詳情頁
java - Eclipse中的 “context root” 和 “content directory” 的作用是什么?
瀏覽:111日期: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. macos - mac下docker如何設置代理2. java - 請問在main方法中寫成對象名.屬性()并賦值,與直接參參數賦值輸錯誤是什么原因?3. MySQL數據庫中文亂碼的原因4. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””5. docker不顯示端口映射呢?6. docker - 各位電腦上有多少個容器啊?容器一多,自己都搞混了,咋辦呢?7. android studio總是在processes running好久8. angular.js - 關于$apply()9. docker-compose 為何找不到配置文件?10. dockerfile - 我用docker build的時候出現下邊問題 麻煩幫我看一下
排行榜
