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