我的app根文件夹中有一个html文件,该文件位于webapp
tomcat文件夹下:apache-tomcat-9.0.0.M3\webapps\shop\index.html
当我试图打开http://localhost:8080/shop/
“请求的资源不可用”
发生。我正在使用spring mvc,所以我在终端中收到以下消息:No mapping for http request with URl shop/ in DispatcherServlet.
然而,如果将其重命名为index.jsp,则可以正常工作