[請益] 新手請教SpringMVC 404 Error...
我照著tutorialspoint的教學一步一步做
https://www.tutorialspoint.com/spring/spring_mvc_hello_world_example.htm
用Eclipse產生的目錄結構 (Spring Legacy Project)
http://i.imgur.com/SR2YAJD.png
![](https://i.imgur.com/SR2YAJD.jpg)
web.xml
http://i.imgur.com/PodeSDn.png
![](https://i.imgur.com/PodeSDn.jpg)
servlet.xml
http://i.imgur.com/vXVftAL.png
![](https://i.imgur.com/vXVftAL.jpg)
controller
http://i.imgur.com/u3SX4FT.png
![](https://i.imgur.com/u3SX4FT.jpg)
不管是
http://localhost:8080/example <-執行時跳的頁面
http://localhost:8080/example/home
http://localhost:8080/HelloWeb/
http://localhost:8080/HelloWeb/home
通通都是404
http://i.imgur.com/vePLk21.png
![](https://i.imgur.com/vePLk21.jpg)
求大大好心指點,謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 218.161.45.91
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1500644724.A.9EC.html
→
07/21 22:25, , 1F
07/21 22:25, 1F
→
07/22 10:29, , 2F
07/22 10:29, 2F
→
07/22 10:30, , 3F
07/22 10:30, 3F