时间长了不学习,终于下定决心看狂神的视频学习,一看就会,一写就废,
报错:spring boot自动装配注入失败,
原因是没有导入thymeleaf依赖
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring5</artifactId>
</dependency>
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-java8time</artifactId>
</dependency>
导入即可