先检查是否进入controller的方法中 已经成功调用方法而游览器页面出现Whitelabel Error Page 是因为没有在pom.xml文件中添加thymeleaf的依赖
<dependency
>
<groupId
>org
.springframework
.boot
</groupId
>
<artifactId
>spring
-boot
-starter
-thymeleaf
</artifactId
>
</dependency
>
转载请注明原文地址: https://mac.8miu.com/read-514394.html