版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sinat_29774479/article/details/82622436
今天在yml文件中配置thymeleaf时候报错deprecated configuration property spring.thymeleaf.content-type
意思是这个属性已经过时不被使用
改为
thymeleaf:
cache: false
prefix: classpath:/templates/
suffix: .html
encoding: UTF-8
# content-type: text/html
servlet:
content-type: text/html
mode: HTML5