搜尋
問答 java - Eclipse中的 'context root” 和 'content directory” 的作用是什麼?

0

Eclipse中的 “context root” 和 “content directory” 的作用是什麼?
是tomcat使用的嗎?

是在那裡用到的

#
Your Answer
提交

2 個答案
0

root代表:"localhost:xxx"就是存取/tomcat/webapps/root/的項目

目錄代表:"localhost:xxx/XXX"就是存取/tomcat/webapps/XXX的項目

2017-07-05 10:04:13

提交

0

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

2017-07-05 10:04:13

提交

Hot Tools

vc9-vc14(32+64位元)運行庫合集(連結在下方)

vc9-vc14(32+64位元)運行庫合集(連結在下方)

phpStudy安裝所需運行函式庫集合下載

VC9 32位

VC9 32位

VC9 32位元 phpstudy整合安裝環境運行庫

php程式設計師工具箱完整版

php程式設計師工具箱完整版

程式設計師工具箱 v1.0 php整合環境

VC11 32位

VC11 32位

VC11 32位元 phpstudy整合安裝環境運行庫

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用