No mapping found for HTTP request with URI [/xxx/xxx] in DispatcherServlet with name 'xxx'
程序员文章站
2022-07-15 13:25:29
...
No mapping found for HTTP request with URI [/xxx/xxx] in DispatcherServlet with name 'xxx'。
网上的方法都没用,最后发现src/main/resources下的资源没用打包进WEB-INF/classes
用maven构建的项目理论上会打包进去,既然不行就手动添加。
在pom.xml的<bulid>标签加入以下
<bulid>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</bulid>
上一篇: SpringMVC解决乱码配置
下一篇: springMVC实现单文件和多文件上传
推荐阅读
-
vue+No mapping found for HTTP request with URI [*//**] in DispatcherServlet with name ‘springMvc‘
-
如何解决“ No mapping found for HTTP request with URI [XXX] in DispatcherServlet with name 'XXX' ”
-
警告: No mapping found for HTTP request with URI [/springmvc-01/helloworld] in DispatcherServlet with
-
No mapping found for HTTP request with URI [/xxx/xxx] in DispatcherServlet with name 'xxx'
-
No mapping found for HTTP request with URI [...] in DispatcherServlet with name ‘DispatcherServlet‘
-
No mapping found for HTTP request with URI [***.html] in DispatcherServlet with name "***"
-
No mapping found for HTTP request with URI [/HelloWeb/] in DispatcherServlet with name 'HelloWeb...
-
No mapping found for HTTP request with URI [/app17a/] in DispatcherServlet with name 'springmvc'解决方法
-
No mapping found for HTTP request with URI [/Springmvc/test] in DispatcherServlet with dispatche
-
No mapping found for HTTP request with URI [xxxx/xxx] in DispatcherServlet with dispatche