原因一:
主启动类位置要放在与controller包同级目录下
原因二:
缺少thymeleaf启动依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
标签:启动,新建,spring,boot,thymeleaf,解决,页面 From: https://www.cnblogs.com/woofcrab/p/17416879.html