新建一个springboot项目后配置完controller后启动一直报“Whitelabel Error Page”
项目结构正确
解决方法:
在pom.xml文件里配置thymeleaf引擎依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
新建一个springboot项目后配置完controller后启动一直报“Whitelabel Error Page”
项目结构正确
解决方法:
在pom.xml文件里配置thymeleaf引擎依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>