在创建一个spring boot项目在controller层想返回一个页面时,出现了如下报错:
Circular view path [login]:would dispatch back to the current hander URL [/login] again.Check your ViewResolver setup!(Hint:This may be the result of an unspecified view,due to default view name generation.)
解决方法:添加一个依赖包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<version>2.0.1.RELEASE</version>
</dependency>