SpringBoot中使用Thymeleaf模板报错

SpringBoot中使用Thymeleaf模板报错,第1张

SpringBoot中使用Thymeleaf模板报错

首次使用Thymeleaf模板,在启动的时候报如下错误

The following method did not exist: 
org.thymeleaf.spring5.SpringTemplateEngine.setRenderHiddenMarkersBeforeCheckboxes(Z)V

出现这一错误的原因是SpringBoot的版本和Thymeleaf模板版本不兼容,在标签中添加如下内容:

3.0.9.RELEASE
2.2.2

添加后即可正常启动SpringBoot.

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/zaji/5660613.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-16
下一篇2022-12-16

发表评论

登录后才能评论

评论列表(0条)

    保存