异常描述
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就可以了。