控制台报错:Servlet.service() for servlet [dispatcherServlet] in context
错误信息:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [hello]: would dispatch back to the current handler URL [/hehe/hello] again. Check yo
·
错误信息:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [hello]: would dispatch back to the current handler URL [/hehe/hello] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause
解决方法:检查
1.controller层没有加@ResponseBody
2.Service层(使用dao层)未添加注解@Autowired或者@Resource
3.@RestController使用成了@Controller
4.dao层 添加注解@mapper 或者主启动类@MapperScan("com.wqj.mapper")扫描包
更多推荐
所有评论(0)