java.lang.NoClassDefFoundError: org/thymeleaf/templateresolver/TemplateResolver我的项目出现这种情况的是:springboot版本是1.5.3的 我又自己定义了thymeleaf的版本,应该会覆盖其版本,好像是没有生效,不知道什么原因,有知道的可以评论告知,谢谢!
解决方案:在maven的properties中添加如下的版本控制 并把依赖中的版本去掉即可
<properties>
<thymeleaf.version>3.0.3.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.2.0</thymeleaf-layout-dialect.version>
</properties>
本文解决了一个关于 SpringBoot 1.5.3 版本中使用 Thymeleaf 出现的 NoClassDefFoundError 错误。通过在 Maven 的 properties 中配置 Thymeleaf 的版本来解决版本不一致的问题。
1487

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



