增加下面这个依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> <version>2.4.4</version> </dependency>
https://blog.csdn.net/weixin_43846347/article/details/116530113