具体描述:
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.baomidou.mybatisplus.autoconfigure.SafetyEncryptProcessor.postProcessEnvironment(SafetyEncryptProcessor.java:55)
The following method did not exist:
'boolean com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotBlank(java.lang.CharSequence)'
The calling method's class, com.baomidou.mybatisplus.autoconfigure.SafetyEncryptProcessor, was loaded from the following location:
jar:file:/E:/Environment/apache-maven/repository/com/baomidou/mybatis-plus-boot-starter/3.4.0/mybatis-plus-boot-starter-3.4.0.jar!/com/baomidou/mybatisplus/autoconfigure/SafetyEncryptProcessor.class
The called method's class, com.baomidou.mybatisplus.core.toolkit.StringUtils, is available from the following locations:
jar:file:/E:/Environment/apache-maven/repository/com/baomidou/mybatis-plus-core/3.2.0/mybatis-plus-core-3.2.0.jar!/com/baomidou/mybatisplus/core/toolkit/StringUtils.class
The called method's class hierarchy was loaded from the following locations:
com.baomidou.mybatisplus.core.toolkit.StringUtils: file:/E:/Environment/apache-maven/repository/com/baomidou/mybatis-plus-core/3.2.0/mybatis-plus-core-3.2.0.jar
Action:
Correct the classpath of your application so that it contains compatible versions of the classes com.baomidou.mybatisplus.autoconfigure.SafetyEncryptProcessor and com.baomidou.mybatisplus.core.toolkit.StringUtils
Process finished with exit code 1
报错原因:
包冲突,邮件pom文件中
找到红线的地方,actual size 可以看到具体是哪个包
解决办法:
在插件中安装maven helper
重启,在pom文件中切换到插件页面
可以看到是什么包爆红,右键exclude就行