springboot,mybatis-plus 自动生成代码后测试错误

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2023-06-20 18:08:01.357 ERROR 20468 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

Action: Correct the classpath of your application so that it contains compatible versions of the classes com.baomidou.mybatisplus.extension.service.impl.ServiceImpl and com.baomidou.mybatisplus.core.toolkit.ReflectionKit
在这里插入图片描述
解决方法:是pom.xml里面的依赖包有重复,需要将重复的依赖包删除
我这里是mybatis-plus-core与mybatisr重复了,删除mybatis-plus-core包就好了。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐