在application.properties文件内添加
spring.freemarker.cache=false
spring.freemarker.suffix=.ftl
spring.freemarker.templateLoaderPath=classpath:/templates/
spring.resources.static-locations=classpath:/templates/
即可解决问题!
在application.properties文件内添加
spring.freemarker.cache=false
spring.freemarker.suffix=.ftl
spring.freemarker.templateLoaderPath=classpath:/templates/
spring.resources.static-locations=classpath:/templates/
即可解决问题!