整合mybatis-plus 版本是3.2.0 出现
Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundErr
后来查看发现 mybatis-spring-boot-starter 版本过低
更换高版本后 可以使用。
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.0.1</version> </dependency>