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

mac2026-05-25  4

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

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
最新回复(0)