Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [showUsers]: would dispatch back to the current handler URL [/user/showUsers] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause
在使用springboot继承thymeleaf模板作为前端模板引擎的时候出现错误无法解析可能为配置视图解析
一开始以为是自己controller错误结果是thymeleaf忘记导入在pom中添加
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>