application.properties属性文件增加一行配置:

//thymeleaf表示视图层, 如果视图层为freemarker, 则为spring.freemarker.cache=false
spring.thymeleaf.cache=false