原因如下:
自己摸索 springboot 与 mybatis 和 thymeleaf 进行整合时,同时引进了 spring-boot-starter-web 包
mybatis-spring-boot-starter 包和 spring-boot-starter-thymeleaf,启动项目后报出了以下异常
Caused by:java.lang.NoClassDefFoundError:org/thymeleaf/spring5/view/ThymeleafViewResolve
后来把 spring-boot-starter-web 包注释掉,就可以正常启动项目,三者全部整合完成!不知道是什么问题?