No mapping found for HTTP request with URI [/crmcrmcrm/css/bootstrap.min.css] in DispatcherServlet w
Posted Tonbby
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了No mapping found for HTTP request with URI [/crmcrmcrm/css/bootstrap.min.css] in DispatcherServlet w相关的知识,希望对你有一定的参考价值。
先把错误贴上来
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 w的主要内容,如果未能解决你的问题,请参考以下文章
WARN PageNotFound: No mapping found for HTTP request with URI
关于No mapping found for HTTP request with URI...
java springmvc No mapping found for HTTP request with URI
springmvc搭建环境时报No mapping found for HTTP request with URI [/exam3/welcome] in DispatcherServlet with
No mapping found for HTTP request with URI [/HelloWeb/] in DispatcherServlet with name 'HelloWeb
为啥 Spring MVC 以 404 响应并报告“No mapping found for HTTP request with URI [...] in DispatcherServlet”?