Could not resolve view with name 'sys/menu/user' in servlet with name 'dispatcher'
2017-08-09 08:50
477 查看
这个报错有点坑儿。 他说该 路径不能被 springMVC dispatcher 拦截 ,仔细排查了下是这个注解搞的鬼 @RestController,
官方文档来说 》 @RestController = @Controller + @ResponseBody (它是传一个 json )@Controller 他是会被拦截到页面 ,我当时用的就是这个,实际上我想要得到 json 数据,而不是 跳转 页面,所以出现下面错误!!!
HTTP Status 500 - 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'
- Could not resolve view with name 'ok' in servlet with name 'spring'
- javax.servlet.ServletException: Could not resolve view with name 'xxxxx'in servlet with name 'xxx'
- javax.servlet.ServletException: Could not resolve view with name 'login' in servlet with name 'XXX'
- javax.servlet.ServletException: Could not resolve view with name 'destination/isOtherExist' in servl
- Could not resolve view with name 'pcir/del' in servlet with name 'forum'
- javax.servlet.ServletException: Could not resolve view with name 'qq' in servlet with name 'WeiXin'
- Could not resolve view with name 'bok.html' in servlet with name 'spring'
- 16 Could not resolve view with name 'XXX.ftl' in servlet with name 'SpringMVC'
- javax.servlet.ServletException: Could not resolve view with name 'ok' in servlet with name 'spring'
- javax.servlet.ServletException: Could not resolve view with name 'xxxxx'in servlet with name 'xxx'
- javax.servlet.ServletException: Could not resolve view with name 'xxx' in servlet with name
- Could not resolve view with name 'pcir/del' in servlet with name 'forum'
- springMVC+freemarker 中 Could not resolve view with name 'XXX.ftl' in servlet with name 'SpringMVC'
- javax.servlet.ServletException: Could not resolve view with name‘ XXXX’in servlet with name 'spring'的解决方案-----SKY
- Error creating bean with name 'dwrSysuserDao' defined in ServletContext resource
- c-version:null]] could not deserialize the servlet-context scoped attribute with name: "MENU_LIST"
- Could not resolve placeholder 'jdbc.username' in string value "${jdbc.username}"
- c-version:null]] could not deserialize the servlet-context scoped attribute with name: "MENU_LIST"
- Could not resolve view with name