在springboot项目中导了
<!-- https://mvnrepository.com/artifact/org.thymeleaf/thymeleaf -->
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf</artifactId>
<version>3.1.0.M1</version>
</dependency>
正确的包应该是!
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-thymeleaf -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<version>2.6.3</version>
</dependency>
天哪真的太蠢了
在SpringBoot项目中,错误地导入了Thymeleaf的单独依赖,而正确的做法是引入`spring-boot-starter-thymeleaf`启动器依赖,确保项目能正确运行并使用Thymeleaf模板引擎。





