Springboot 报错信息:“Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [getWeWork]: would dispatch back to the current handler URL [/getWeWork] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)]”
处理方式:
需要增加thymeleaf依赖和@ResponseBody注解:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>