警告信息是什么原因?
03-Jun-2019 19:38:09.385 信息 [http-nio-8080-exec-12] org.springframework.web.servlet.FrameworkServlet.initServletBean Initializing Servlet 'springmvc'
03-Jun-2019 19:38:11.649 信息 [http-nio-8080-exec-12] org.springframework.web.servlet.FrameworkServlet.initServletBean Completed initialization in 2264 ms
03-Jun-2019 19:38:11.666 警告 [http-nio-8080-exec-12] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /favicon.ico
03-Jun-2019 19:38:23.719 警告 [http-nio-8080-exec-18] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff2
03-Jun-2019 19:38:23.847 警告 [http-nio-8080-exec-16] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff
03-Jun-2019 19:38:23.853 警告 [http-nio-8080-exec-20] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.ttf
03-Jun-2019 19:38:36.433 警告 [http-nio-8080-exec-12] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff2
03-Jun-2019 19:38:36.445 警告 [http-nio-8080-exec-23] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff
03-Jun-2019 19:38:36.460 警告 [http-nio-8080-exec-15] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.ttf
03-Jun-2019 19:38:44.790 警告 [http-nio-8080-exec-24] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff2
03-Jun-2019 19:38:44.803 警告 [http-nio-8080-exec-21] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff
03-Jun-2019 19:38:44.810 警告 [http-nio-8080-exec-22] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.ttf
03-Jun-2019 19:38:55.509 警告 [http-nio-8080-exec-26] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff2
03-Jun-2019 19:38:55.521 警告 [http-nio-8080-exec-11] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff
03-Jun-2019 19:38:55.528 警告 [http-nio-8080-exec-20] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.ttf
03-Jun-2019 19:39:00.986 警告 [http-nio-8080-exec-22] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff2
03-Jun-2019 19:39:00.995 警告 [http-nio-8080-exec-23] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.woff
03-Jun-2019 19:39:01.006 警告 [http-nio-8080-exec-15] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping for GET /fonts/glyphicons-halflings-regular.ttf
正在回答
同学你好,如下警告是指没有font字体文件的映射。
在css文件中,配置有字体图标。
< url-pattern > /* </ url-pattern > 中,“/*”会拦截所有的请求,使其进入spring的DispatcherServlet 类进行处理,css文件也被拦截了,所以出现了警告。而“/”会拦截静态资源,例如css js 等静态资源,但是在servlet-mapping中配置后,就不会拦截,也就不会出现警告了。
如果我的回答解决了你的疑惑,请采纳。祝:学习愉快~
相似问题
登录后可查看更多问答,登录/注册
- 参与学习 人
- 提交作业 205 份
- 解答问题 4317 个
Java中非常实用的SSM整合开发内容,从Spring开始,到MyBaits的进阶内容,再到SpringMVC的应用,最后是SSM整合开发案例,逐步深入,助你成长为一名Java工程师!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星