Could not resolve view with name
来源:互联网 发布:linux 内核源码修改 编辑:程序博客网 时间:2024/06/14 22:09
错误:javax.servlet.ServletException:Could not resolve view with name 'xxx' in servlet with name 'xxx'
原因:导入了错误ModelAndView类.
这是刚开始接触springmvc遇到的问题,调试很久,
试过返回String的view是可以的,
但是返回ModelAndView对象就报错,页面返回500找不到视图
最后发现是ctrl+shift+O时导入了错误ModelAndView类.
org.springframework.web.portlet——Spring MVC的增强
org.springframework.web.servlet——对J2EE6.0 servlet3.0的支持
应该是servlet那个包里的ModelAndView.当然这只是这种视图找不到的错误的一种原因,但基本上都是ModelAndView解析上的问题
0 0
- Could not resolve view with name
- Could not resolve view with name 'xxxxx‘
- springMVC+freemarker中Could not resolve view with name... 问题解决
- Could not resolve view with name 'bok.html' in servlet with name 'spring'
- javax.servlet.ServletException: Could not resolve view with name 'ok' in servlet with name 'spring'
- Could not resolve view with name 'ok' in servlet with name 'spring'
- Could not resolve view with name 'pcir/del' in servlet with name 'forum'
- javax.servlet.ServletException: Could not resolve view with name 'xxxxx'in servlet with name 'xxx'
- javax.servlet.ServletException: Could not resolve view with name 'qq' in servlet with name 'WeiXin'
- javax.servlet.ServletException: Could not resolve view with name 'xxx' in servlet with name
- Could not resolve view with name 'sys/menu/user' in servlet with name 'dispatcher'
- Could not resolve view with name '***' in servlet with name 'dispatcher'
- javax.servlet.ServletException: Could not resolve view with name 'xxxxx'in servlet with name 'xxx'
- Spring mvc-异常javax.servlet.ServletException: Could not resolve view with name 'xxx' in servlet with
- Spring 4.0.2 + Apache Tiles 3.0.3 [Could not resolve view with name "xxx"]
- Spring mvc 4.0+freemarker抛javax.servlet.ServletException: Could not resolve view with name
- javax.servlet.ServletException: Could not resolve view with name 'destination/isOtherExist' in servl
- Could not resolve URL for hyperlinked relationship using view name
- R语言学习-01
- NYOJ 22 素数求和问题
- hust1347(归并排序求逆序对)
- 关于iOS和OS X废弃的API你需要知道的一切
- 新浪微博图片
- Could not resolve view with name
- 剑指offer 6 重建二叉树
- NYOJ 23 取石子(一)
- <serviceHostingEnvironment>——之架构和特性
- Django学习笔记第1记
- NYOJ 24 素数距离问题
- 强制使用处于TIME_WAIT的TCP状态的socket地址
- 嵌入式学习路线
- NYOJ 29 求转置矩阵问题