美文网首页项目
解决Mybatis-plus和pagehelper依赖冲突

解决Mybatis-plus和pagehelper依赖冲突

作者: T_wk | 来源:发表于2019-10-14 18:53 被阅读0次

问题描述:

因项目需要,在springboot中需要引入mybatis-plus,在maven引入后,启动过程中报如下的错误:

原因描述:

在项目中,事先已经引入了关于pagehelper相关的依赖:

现在引入了mybatis-plus依赖:

从而产生了冲突,pagehelper是包含了Mybatis以及Mybatis-Spring,而MyBatis-Spring依赖冲突,系统自动用了MyBatis=plus的MyBatis-spring。

解决方法:

    如果不需要用到pagehelper-spring-boot-starter相关,可以注释掉pagehelper-spring-boot-starter依赖。

    或者可以把pagehelper中的mybatis依赖删除即可。

相关文章

网友评论

    本文标题:解决Mybatis-plus和pagehelper依赖冲突

    本文链接:https://www.haomeiwen.com/subject/zkcdmctx.html