spring-boot java.lang.ClassNotFoundException: org.thymeleaf.spring5.ISpringTemplateEngine

版权声明:本文为博主原创文章,转载请标明出处。 https://blog.csdn.net/u010173095/article/details/79486173

最近在学习spring-boot的时候,按照spring in action的第21章,搭建项目的时候,遇到了这个错误:

 java.lang.ClassNotFoundException: org.thymeleaf.spring5.ISpringTemplateEngine

检查发现,粗心引入了错误的依赖,正确的依赖是(我用的spring 5):

compile group: 'org.thymeleaf', name: 'thymeleaf-spring5', version: '3.0.9.RELEASE'

我引入的依赖是:


compile group: 'org.thymeleaf', name: 'thymeleaf', version: '3.0.9.RELEASE'

看书是还需要认真一点。

猜你喜欢

转载自blog.csdn.net/u010173095/article/details/79486173