码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2018-05-14 10:29:52      阅读:307      评论:0      收藏:0      [点我收藏+]

标签:har   odi   path   for   template   html   override   ESS   encoding   

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
  

 

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

标签:har   odi   path   for   template   html   override   ESS   encoding   

原文地址:https://www.cnblogs.com/newlangwen/p/9034564.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!