Tomcat 的預設主目錄是 webapps/root
在 conf
資料夾裡找到 server.xml
開啟
在 <hosts> ... </host>
中間新增以下
1 | < Context docBase = "C:/apache-tomcat-9.0.65/webapps/AttEvaSystem" path = "" debug = "0" reloadable = "true" /> |
docBase
裡面是你想要的預設目錄
更改完成後 localhost 就能自動進入 AttEvaSystem 這個資料夾