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/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】
推荐阅读
- [Debug] Use Remote Sources to Debug a Web App on an Emulator, Simulator, or Physical Device
- ConfigurationManager.AppSettings方法
- android主页面相关
- tensorflow2(tf.app.run())
- Android Studio从2.3升级到3.1注意事项
- 提高Android Studio运行编译速度方案
- 使用Android Studio查看API文档
- AOSP android 源码下载
- Java 使用 happen-before 规则实现共享变量的同步操作