1.今天集成 beetl 後 新創建了 一個webapp 文件夾 用來存放 html 等靜態資源
但是通過 Controller 卻訪問不到 , 原來需要配置 一下 webapp的映射路徑(我用的是IDEA,看別的博客eclipse 沒這個問題)
2.具體配置的方法:
File->Project Structure 按圖上所示 將webapp的 目錄 映射到 / 路徑 即 根目錄 下
3.項目的 結構目錄
1.今天集成 beetl 後 新創建了 一個webapp 文件夾 用來存放 html 等靜態資源
但是通過 Controller 卻訪問不到 , 原來需要配置 一下 webapp的映射路徑(我用的是IDEA,看別的博客eclipse 沒這個問題)
2.具體配置的方法:
File->Project Structure 按圖上所示 將webapp的 目錄 映射到 / 路徑 即 根目錄 下
3.項目的 結構目錄
1、 2、 3、 4、 5、 6、 7、運行 HelloWorld 啓動後內置的Tomcat服務器也同時啓動起來了,然後在瀏覽器中輸入 localhost:8080/hello