需要配置application.yml文件
spring:
freemarker:
request-context-attribute: req
suffix: .ftl
content-type: text/html
cache: false
template-loader-path: classpath:/templates
charset: UTF-8
check-template-location: true
expose-request-attributes: false
expose-session-attributes: false
freemarker配置
最新推荐文章于 2022-08-17 00:56:19 发布