引入thymeleaf版本冲突问题The method‘s class,org.thymeleaf.spring5.SpringTemplateEngine, is available

引入thymeleaf版本冲突问题The method’s class,org.thymeleaf.spring5.SpringTemplateEngine, is available

在引入thymeleaf模板时遇到冲突问题:

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:

    'void org.thymeleaf.spring5.SpringTemplateEngine.setRenderHiddenMarkersBeforeCheckboxes(boolean)'

The method's class, org.thymeleaf.spring5.SpringTemplateEngine, is available from the following locations:


解决方法:
<properties>
        <java.version>1.8</java.version>
        <!-- 布局功能的支持程序  thymeleaf3主程序 对应 layout2以上版本  注意版本冲突问题-->
        <springboot.thymeleaf.version>3.0.9.RELEASE</springboot.thymeleaf.version>
        <thymeleaf-layout-dialect.version>2.3.0</thymeleaf-layout-dialect.version>
    </properties>

注意,这里引入的是springboot.thymeleaf.version。

你可能感兴趣的:(问题)