在使用springboot配置thymeleaf的時候遇到這個錯誤
Error processing condition on org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$ThymeleafWebMvcConfiguration.resourceUrlEncodingFilter
后來發現是
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
<!--布局功能支持 -->
<thymeleaf-layout-dialect.version>2.2.2</thymeleaf-layout-dialect.version>
這兩個配置不符合,挺詭異的,按照springboot官方文檔,thymeleaf3.0以上一定要thymeleaf-layout-dialect2.0以上我之前用的並不是這兩個版本,
但也符合規定,運行就會報上面的錯誤,我改成上面的版本號后就正常了。。。。。。
日常記錄