No mapping found for HTTP request with URI [/MessBoard/login/images/bg_1.jpg] in DispatcherServlet w
来源:互联网 发布:淘宝买家号权重是什么 编辑:程序博客网 时间:2024/05/20 18:16
No mapping found for HTTP request with URI [/MessBoard/login/images/bg_1.jpg] in DispatcherServlet with name 'springMVC'
【解答】
将springMVC中的控制层Controller 里的 return "/login"; 改成
return "redirect:/login.jsp"; 重定向就行了。否则原来的页面就跳回去后就js和图片路径等失效了。
2. return默认是转发。
return "redirect:/login.jsp"; 重定向。
return "forward:/login.jsp"; 转发。
0 0
- No mapping found for HTTP request with URI [/MessBoard/login/images/bg_1.jpg] in DispatcherServlet w
- No mapping found for HTTP request with URI [/login.do] in DispatcherServlet with name 'spring'
- No mapping found for HTTP request with URI [/SuperPowerfulProject/login.do] in DispatcherServlet wit
- No mapping found for HTTP request with URI [/SuperPowerfulProject/login.do] in DispatcherServlet wit
- No mapping found for HTTP request with URI [/Demo/WEB-INF/page/login.jsp] in DispatcherServlet with
- No mapping found for HTTP request with URI [/cwgl/department/index] in DispatcherServlet with name
- No mapping found for HTTP request with URI[路径] in DispatcherServlet with name spring3
- 警告: No mapping found for HTTP request with URI [/Springmvc/test] in DispatcherServlet with dispatche
- No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
- No mapping found for HTTP request with URI [/index.html] in DispatcherServlet with name 'springmvc'
- No mapping found for HTTP request with URI [/springmvc/queryitems.action] in DispatcherServlet with
- 警告: No mapping found for HTTP request with URI [] in DispatcherServlet with name
- Spring : No mapping found for HTTP request with URI in DispatcherServlet with name "..."
- No mapping found for HTTP request with URI [/chart/get] in DispatcherServlet with name 'SpringMVC‘
- No mapping found for HTTP request with URI [/prjName/contro] in DispatcherServlet with name 'spring'
- No mapping found for HTTP request with URI [/index.do] in DispatcherServlet with name 'SpringMVC‘
- No mapping found for HTTP request with URI in DispatcherServlet with name 'XXX'
- No mapping found for HTTP request with URI [...] in DispatcherServlet with name '...'
- 【Ray Tracing from Ground Up】光源(Lights)
- mybatis Example Criteria like 模糊查询
- JavaScript和Java的区别
- swift2 函数
- .NET方法中参数过多的解决方法
- No mapping found for HTTP request with URI [/MessBoard/login/images/bg_1.jpg] in DispatcherServlet w
- 比如对 姓名字段,可以同时查询两个姓名的记录
- java并发编程——共享资源的操作
- 初识animate()
- HDU-1728逃离迷宫
- codevs1012
- 移动端Web上传图片实践
- [c++学习笔记]反汇编角度看变量名和引用作为函数参数
- 树懒_移动开学笔记_day01_web_html