解决o.s.web.servlet.PageNotFound 异常

异常描述

2018-12-05 15:45:34.901  WARN 20108 --- [nio-8080-exec-3] o.s.web.servlet.PageNotFound             : No mapping for GET /bootstrap/css/bootstrap.min.css
2018-12-05 15:45:34.901  WARN 20108 --- [nio-8080-exec-6] o.s.web.servlet.PageNotFound             : No mapping for GET /bootstrap/js/bootstrap.min.js
2018-12-05 15:45:34.904  WARN 20108 --- [nio-8080-exec-7] o.s.web.servlet.PageNotFound             : No mapping for GET /layer/layer.js
2018-12-05 15:45:34.904  WARN 20108 --- [nio-8080-exec-2] o.s.web.servlet.PageNotFound             : No mapping for GET /js/jquery.min.js
2018-12-05 15:45:34.904  WARN 20108 --- [nio-8080-exec-5] o.s.web.servlet.PageNotFound             : No mapping for GET /jquery-validation/jquery.validate.min.js
2018-12-05 15:45:34.904  WARN 20108 --- [nio-8080-exec-4] o.s.web.servlet.PageNotFound             : No mapping for GET /jquery-validation/localization/messages_zh.min.js

解决思路

因为是加了拦截器后才反生这样情况,应该是拦截器没有能够成功加载资源文件,后面修改WebMvcConfigurationSupport为WebMvcConfigurerAdapter就可以了。

    原文作者:Chandler丶
    原文地址: https://blog.csdn.net/ouzhuangzhuang/article/details/84839180
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞