码迷,mamicode.com
首页 > 移动开发 > 详细

No mapping found for HTTP request with URI [/crmcrmcrm/css/bootstrap.min.css] in DispatcherServlet with name 'springMvc'

时间:2018-06-15 16:05:50      阅读:292      评论:0      收藏:0      [点我收藏+]

标签:exec   ssi   roc   SM   handle   nbsp   bubuko   process   jquery   

先把错误贴上来

 No mapping found for HTTP request with URI [/crmcrmcrm/css/sb-admin-2.css] in DispatcherServlet with name ‘springMvc‘
DEBUG [http-bio-8080-exec-6] - Successfully completed request
DEBUG [http-bio-8080-exec-7] - Did not find handler method for [/css/font-awesome.min.css]
 WARN [http-bio-8080-exec-9] - No mapping found for HTTP request with URI [/crmcrmcrm/css/bootstrap.min.css] in DispatcherServlet with name ‘springMvc‘
DEBUG [http-bio-8080-exec-9] - Successfully completed request
 WARN [http-bio-8080-exec-7] - No mapping found for HTTP request with URI [/crmcrmcrm/css/font-awesome.min.css] in DispatcherServlet with name ‘springMvc‘
DEBUG [http-bio-8080-exec-7] - Successfully completed request
DEBUG [http-bio-8080-exec-5] - Did not find handler method for [/css/dataTables.bootstrap.css]
 WARN [http-bio-8080-exec-5] - No mapping found for HTTP request with URI [/crmcrmcrm/css/dataTables.bootstrap.css] in DispatcherServlet with name ‘springMvc‘
DEBUG [http-bio-8080-exec-4] - Did not find handler method for [/css/metisMenu.min.css]
DEBUG [http-bio-8080-exec-5] - Successfully completed request
 WARN [http-bio-8080-exec-4] - No mapping found for HTTP request with URI [/crmcrmcrm/css/metisMenu.min.css] in DispatcherServlet with name ‘springMvc‘
DEBUG [http-bio-8080-exec-4] - Successfully completed request
DEBUG [http-bio-8080-exec-10] - DispatcherServlet with name ‘springMvc‘ processing GET request for [/crmcrmcrm/js/jquery.min.js]
DEBUG [http-bio-8080-exec-10] - Looking up handler method for path /js/jquery.min.js
DEBUG [http-bio-8080-exec-10] - Did not find handler method for [/js/jquery.min.js]
 WARN [http-bio-8080-exec-10] - No mapping found for HTTP request with URI [/crmcrmcrm/js/jquery.min.js] in DispatcherServlet with name ‘springMvc‘
DEBUG [http-bio-8080-exec-10] - Successfully completed request

 

项目没有报错,ssm构建也成功,jsp和css,js的目录位置也对,反正就是访问不到静态资源。

经过了艰苦卓绝的寻找。。终于找到错误

原因在这里 web.xml中

技术分享图片

 

技术分享图片

在这里我用的是/拦截,拦截了除了jsp以外的所有请求,显然把静态资源也拦截了。

解决办法:换成了*.action就ok了

技术分享图片

 

 

技术分享图片

 

No mapping found for HTTP request with URI [/crmcrmcrm/css/bootstrap.min.css] in DispatcherServlet with name 'springMvc'

标签:exec   ssi   roc   SM   handle   nbsp   bubuko   process   jquery   

原文地址:https://www.cnblogs.com/tonbby/p/9186688.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!