1、引入Maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
2、yml配置属性
spring:
freemarker:
suffix: .html #后缀名,默认是.ftl
content-type: text/html
1、引入Maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
2、yml配置属性
spring:
freemarker:
suffix: .html #后缀名,默认是.ftl
content-type: text/html