Spring Boot 整合 FreeMarket

官方Demo spring-boot-sample-web-freemarker

依赖的模块

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

默认加载类路径templates目录下的文件
可以在application.properties中通过属性spring.freemarker.template-loader-path自定义模版文件所在的目录

spring.freemarker.template-loader-path=classpath:/activiti/
//默认前缀为空
spring.freemarker.prefix=
//默认后缀为.ftl
spring.freemarker.suffix=.ftl

猜你喜欢

转载自blog.csdn.net/quan20111992/article/details/80287611