其实很简单,在maven的pom.xml文件中加入

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>

maven便会自动导入所需要的包。

编写

Spring boot中整合freemarker若干问题

Spring boot中整合freemarker若干问题

再编写freemarker文件

Spring boot中整合freemarker若干问题

启动便可得到结果

Spring boot中整合freemarker若干问题

相关文章:

  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
猜你喜欢
  • 2021-06-02
  • 2021-05-26
  • 2021-10-20
  • 2022-12-23
  • 2021-11-28
  • 2021-11-27
相关资源
相似解决方案