用SpringBoot在整合Thymeleaf的时候 报了一个错:
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$ThymeleafDefaultConfiguration.templateEngine(ThymeleafAutoConfiguration.java:142)
The following method did not exist:
org.thymeleaf.spring5.SpringTemplateEngine.setRenderHiddenMarkersBeforeCheckboxes(Z)V
The method's class, org.thymeleaf.spring5.SpringTemplateEngine, is available from the following locations:
jar:file:/F:/maven_repository/org/thymeleaf/thymeleaf-spring5/3.0.9.RELEASE/thymeleaf-spring5-3.0.9.RELEASE.jar!/org/thymeleaf/spring5/SpringTemplateEngine.class
It was loaded from the following location:
file:/F:/maven_repository/org/thymeleaf/thymeleaf-spring5/3.0.9.RELEASE/thymeleaf-spring5-3.0.9

在SpringBoot项目中整合Thymeleaf时遇到版本不兼容问题,错误提示表明类路径配置需要调整。解决方案是将Thymeleaf版本从3.0.9.RELEASE更新到3.0.11.RELEASE,这一改动成功解决了问题。
最低0.47元/天 解锁文章
975

被折叠的 条评论
为什么被折叠?



