SpringBoot入门-15(springboot配置freemarker使用YML)

https://blog.csdn.net/fengsi2009/article/details/78879924

application.yml

spring:
  http:
    encoding:
      force: true
      charset: UTF-8
  freemarker:
    allow-request-override: false
    cache: false
    check-template-location: true
    charset: UTF-8
    content-type: text/html; charset=utf-8
    expose-request-attributes: false
    expose-session-attributes: false
    expose-spring-macro-helpers: false
    suffix: .ftl
    template-loader-path: classpath:/templates
  
原文地址:https://www.cnblogs.com/newlangwen/p/9034564.html