SpringBoot 进入到controller方法中跳转html 出现Whitelabel Error Page

先检查是否进入controller的方法中
已经成功调用方法而游览器页面出现Whitelabel Error Page
是因为没有在pom.xml文件中添加thymeleaf的依赖

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

猜你喜欢

转载自blog.csdn.net/qq_42048638/article/details/102870987