当前位置: 首页 > 工具软件 > Hint View > 使用案例 >

Springboot 踩坑一:This may be the result of an unspecified view, due to default view name generation 报错

戈念
2023-12-01

自己定制首页,测试接口报404

javax.servlet.ServletException: Circular view path [index]: would
dispatch back to the current handler URL [/index] again. Check your View Resolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

解决办法

缺少thymeleaf依赖,添加即可

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
   </dependency>
 类似资料: