我的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版本冲突的问题相关推荐

  1. 解决shiro和quartz2 版本冲突问题

    解决shiro和quartz2 版本冲突问题 参考文章: (1)解决shiro和quartz2 版本冲突问题 (2)https://www.cnblogs.com/xiaojf/p/6561316.h ...

  2. springboot2.3.x版本对应的spring5与thymeleaf版本配置

    1.由于springboot2.3.2中自带的spring5,我这里用的java8,不指定thymeleaf版本情况下默认的thymeleaf版本应该是thymeleaf2.而2版本总会出现问题,我遇 ...

  3. 解决easyExcel和poi版本冲突问题

    由于easyExcel自带依赖于3.17的poi,所以如果项目其它地方引入了其它版本的poi,就会导致easyExcel导出失败等一系列问题,主要原因是因为poi版本冲突导致的,这里我提供的解决办法是 ...

  4. 解决 cv_bridge 与 opencv4 版本冲突问题

    解决了在 ROS melodic / noetic 下 cv_bridge 与 opencv4 版本冲突导致的 opencv 操作 导致 Segmentation fault (core dumped ...

  5. 理性、抽丝剥茧地解决 Easypoi、poi 版本冲突问题,而不是无头苍蝇一样闷头百度、google 一顿搜

    项目中有一个地方使用了 easypoi 导入excel 文件: String path = "E:\\学生列表.xls"; List<StudentExcelModel> ...

  6. 解决sass-loader和node-sass版本冲突问题(太难了)

      太难了,两天没有学习了,这个问题卡了很久,差点就放弃了,今天终于解决了,继续学习Vue! 报错信息1: ERROR Failed to compile with 6 errors 7:45:21 ...

  7. 【Vegas原创】解决System.Web.Extensions版本冲突方法

    报类似错误: Compiler Error Message: CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:\WIN ...

  8. ROS学习:cv_bridge与opencv版本冲突三种解决方案

    cv_bridge与opencv版本冲突三种解决方案 1 问题描述: 2 解决方案: 2.1 不使用cv_bridge包 2.2 令cv_bridge使用opencv版本切换为自己工程所使用的版本 2 ...

  9. 我爱Java系列---【 maven依赖版本冲突的解决方法】

    我爱Java系列---[ maven依赖版本冲突的解决方法] 参考文章: (1)我爱Java系列---[ maven依赖版本冲突的解决方法] (2)https://www.cnblogs.com/hu ...

  10. 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) 参考文章: ...

最新文章

  1. 2021-2027年中国涂装行业市场需求预测与投资战略规划分析报告
  2. python import出错_python import的一些问题
  3. 蓝牙nrf52832的架构
  4. 怎样将c++的对话框自动移到指定位置_【Excel技巧】如何批量创建多个指定名称的工作表...
  5. linux中高并发socket最大连接数的优化详解
  6. 手机的小窗口怎么弄_做一个表白小程序
  7. 调用打印机_涨知识|你不知道的关于打印机的打印过程和打印机驱动的那些事...
  8. On Comparing Side-Channel Preprocessing Techniques for Attacking RFID Devices
  9. idea 用iterm 终端_iTerm2 都不会用,还敢自称老司机?(上)
  10. Nat Biotechnol | 大神李恒团队开发不依赖于亲本的单倍型基因组组装工具hifiasm
  11. 3-6:类与对象下篇——构造函数中的初始化列表、匿名对象和explicit关键字
  12. 【SICP练习】142 练习3.77
  13. Vue图片放大镜插件
  14. NSA永恒之蓝病毒,如何通过360工具修复?
  15. 计算机基础知识试题和答案
  16. 多目标跟踪(Multi-Object-Tracking)入门
  17. Java 拆分Word文档
  18. 安卓程序运行显示permission is only granted to system apps的解决方法
  19. was compiled with optimization - stepping may behave oddly; variables may not be available.
  20. 成功誓言之我永远不再自怜自贱

热门文章

  1. 安卓逆向助手反编译apk后文件夹为空
  2. 原子结构示意图全部_原子结构示意图大全
  3. Hadoop 3.1.0 单机版伪分布式的搭建
  4. IObit Uninstaller Pro 10.0.2.20 便携版 — 卸载工具
  5. 你在家看电视,家里的电视也在看你?
  6. 程序员必备的画图工具汇总
  7. Win11画图工具没了怎么重新安装
  8. 将纯真ip数据库导入MySql
  9. WP全新COS美女写真网站整站源码+两套下载站模板
  10. 纪念盘古工坊开发的一款手机游戏正式发布