问题:添加mybatis-plus后,启动不成功
原因:maven依赖传递问题
mybatis-plus是3.5.5,而mybatis-pring还是2.1.2
解决方法:
添加高版本mybatis,排除旧版本mybatis
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.5</version>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>3.0.3</version>
</dependency>