java.lang.IllegalStateException: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
springboot版本
springboot2.5.15
解决方案
在 Maven 仓库中搜索该版本的 Mockito Core
https://mvnrepository.com/artifact/org.mockito/mockito-core/2.23.4
pom.xml修改如下
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>2.23.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.9.3</version>
<scope>test</scope>
</dependency>