最近使用SpringBoot+MyBatis搭建框架,使用了Thymeleaf模板,但启动的时候报错了,错误及解决方法如下:

错误

Caused by: java.lang.ClassNotFoundException: org.thymeleaf.spring5.view.ThymeleafViewResolver

解决

出现这个错是因为找不到ThymeleafViewResolver,原因是因为我引入了Thymeleaf的版本号,去掉后这个错误就消失了。

SpringBoot+Thymeleaf的java.lang.ClassNotFoundException: org.thymeleaf.spring5.view.ThymeleafViewR问题解决

改正后如下图所示:

SpringBoot+Thymeleaf的java.lang.ClassNotFoundException: org.thymeleaf.spring5.view.ThymeleafViewR问题解决



相关文章:

  • 2021-08-08
  • 2021-07-03
  • 2022-02-25
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-06-17
  • 2022-12-23
  • 2021-07-16
  • 2021-12-12
  • 2021-11-01
相关资源
相似解决方案