SpringBoot整合FreeMarker 报错 FTL stack trace ("~" means nesting-related): - Failed at: ${ctx}

解决: 在application.yml配置文件 中加上classic_compatible配置
# freemarker
freemarker:
suffix: .ftl
content-type: text/html
charset: UTF-8
template-loader-path: classpath:/views/
settings:
classic_compatible: true

posted @ 2021-07-08 13:17  Lllamb  阅读(5869)  评论(0编辑  收藏  举报