标签: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了
标签:exec ssi roc SM handle nbsp bubuko process jquery
原文地址:https://www.cnblogs.com/tonbby/p/9186688.html