猿问

tomcat报错404,路径问题?web.xml文件如下,求指教。

https://img.mukewang.com/5cbfc2f800010fc102900404.jpg

https://img1.mukewang.com/5cbfc2f80001c60e05830405.jpg

德玛西亚99
浏览 786回答 4
4回答

桃花长相依

注意这段代码:<welcome-file-list>&nbsp; &nbsp; <welcome-file>index.html</welcome-file></welcome-file-list>你的路径只指向了webapp,没有指向某个具体文件,这时候会去找默认的主页也就是index.html,如果找不到,就只有404了
随时随地看视频慕课网APP

相关分类

Java
我要回答