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包就好了。