解决spring5与thymeleaf版本冲突的问题
我的springboot版本是2.2.6.RELEASE
但是我的thymeleaf是这样配置的
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version><!-- 布局功能的支持程序 thymeleaf3主程序 layout2以上版本--><thymeleaf-layout-diclect.version>2.2.2</thymeleaf-layout-diclect.version>
启动springboot时报了这样的错
An attempt was made to call the method org.thymeleaf.spring5.SpringTemplateEngine.setRenderHiddenMarkersBeforeCheckboxes(Z)V but it does not exist. Its class, org.thymeleaf.spring5.SpringTemplateEngine, is available from the following locations:
jar:file:/E:/springboot/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:/E:/springboot/repository/org/thymeleaf/thymeleaf-spring5/3.0.9.RELEASE/thymeleaf-spring5-3.0.9.RELEASE.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.thymeleaf.spring5.SpringTemplateEngine
解决:只需要在thymeleaf中加上spring5的版本号
<thymeleaf-spring5.version>3.0.9.RELEASE</thymeleaf-spring5.version><thymeleaf-layout-dialect.version>2.2.2</thymeleaf-layout-dialect.version>
解决spring5与thymeleaf版本冲突的问题相关推荐
- 解决shiro和quartz2 版本冲突问题
解决shiro和quartz2 版本冲突问题 参考文章: (1)解决shiro和quartz2 版本冲突问题 (2)https://www.cnblogs.com/xiaojf/p/6561316.h ...
- springboot2.3.x版本对应的spring5与thymeleaf版本配置
1.由于springboot2.3.2中自带的spring5,我这里用的java8,不指定thymeleaf版本情况下默认的thymeleaf版本应该是thymeleaf2.而2版本总会出现问题,我遇 ...
- 解决easyExcel和poi版本冲突问题
由于easyExcel自带依赖于3.17的poi,所以如果项目其它地方引入了其它版本的poi,就会导致easyExcel导出失败等一系列问题,主要原因是因为poi版本冲突导致的,这里我提供的解决办法是 ...
- 解决 cv_bridge 与 opencv4 版本冲突问题
解决了在 ROS melodic / noetic 下 cv_bridge 与 opencv4 版本冲突导致的 opencv 操作 导致 Segmentation fault (core dumped ...
- 理性、抽丝剥茧地解决 Easypoi、poi 版本冲突问题,而不是无头苍蝇一样闷头百度、google 一顿搜
项目中有一个地方使用了 easypoi 导入excel 文件: String path = "E:\\学生列表.xls"; List<StudentExcelModel> ...
- 解决sass-loader和node-sass版本冲突问题(太难了)
太难了,两天没有学习了,这个问题卡了很久,差点就放弃了,今天终于解决了,继续学习Vue! 报错信息1: ERROR Failed to compile with 6 errors 7:45:21 ...
- 【Vegas原创】解决System.Web.Extensions版本冲突方法
报类似错误: Compiler Error Message: CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:\WIN ...
- ROS学习:cv_bridge与opencv版本冲突三种解决方案
cv_bridge与opencv版本冲突三种解决方案 1 问题描述: 2 解决方案: 2.1 不使用cv_bridge包 2.2 令cv_bridge使用opencv版本切换为自己工程所使用的版本 2 ...
- 我爱Java系列---【 maven依赖版本冲突的解决方法】
我爱Java系列---[ maven依赖版本冲突的解决方法] 参考文章: (1)我爱Java系列---[ maven依赖版本冲突的解决方法] (2)https://www.cnblogs.com/hu ...
- github上的版本和本地版本冲突的解决方法(Updates were rejected because the tip of your current branch is behind)
github上的版本和本地版本冲突的解决方法(Updates were rejected because the tip of your current branch is behind) 参考文章: ...
最新文章
- 2021-2027年中国涂装行业市场需求预测与投资战略规划分析报告
- python import出错_python import的一些问题
- 蓝牙nrf52832的架构
- 怎样将c++的对话框自动移到指定位置_【Excel技巧】如何批量创建多个指定名称的工作表...
- linux中高并发socket最大连接数的优化详解
- 手机的小窗口怎么弄_做一个表白小程序
- 调用打印机_涨知识|你不知道的关于打印机的打印过程和打印机驱动的那些事...
- On Comparing Side-Channel Preprocessing Techniques for Attacking RFID Devices
- idea 用iterm 终端_iTerm2 都不会用,还敢自称老司机?(上)
- Nat Biotechnol | 大神李恒团队开发不依赖于亲本的单倍型基因组组装工具hifiasm
- 3-6:类与对象下篇——构造函数中的初始化列表、匿名对象和explicit关键字
- 【SICP练习】142 练习3.77
- Vue图片放大镜插件
- NSA永恒之蓝病毒,如何通过360工具修复?
- 计算机基础知识试题和答案
- 多目标跟踪(Multi-Object-Tracking)入门
- Java 拆分Word文档
- 安卓程序运行显示permission is only granted to system apps的解决方法
- was compiled with optimization - stepping may behave oddly; variables may not be available.
- 成功誓言之我永远不再自怜自贱