No mapping found for HTTP request with URI
本文为博主原创,未经允许不得转载:
浏览器报错如下。
后台控制台日志报错:No mapping found for HTTP request with URI 。。。
解决方案,在web.xml中加入以下代码即可:
<servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.woff</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.ttf</url-pattern> </servlet-mapping>
错误分析参考:
完美解决SpringMVC中静态资源无法找到(No mapping found for HTTP request with URI)问题::::http://blog.csdn.net/jdjdndhj/article/details/54907891