Could not initialize plugin: interface org.mockito.plugins.MockMaker

来源:3-6 dao层开发

豆芽熊

2018-09-04 17:40

启动Could not initialize plugin: interface org.mockito.plugins.MockMaker报错

写回答 关注

1回答

  • 豆芽熊
    2018-09-04 18:03:39
    mockito-core.jar现在依赖于:
                                byte-buddy.jar
                                byte-buddy-agent.jar
                                objenesis.jar
    pom.xml加:                         
                         
    <dependency>
       <groupId>net.bytebuddy</groupId>
       <artifactId>byte-buddy</artifactId>
       <version>1.8.21</version>
    </dependency>
    <dependency>
       <groupId>net.bytebuddy</groupId>
       <artifactId>byte-buddy-agent</artifactId>
       <version>1.8.21</version>
       <scope>test</scope>
    </dependency>
    <dependency>
       <groupId>org.objenesis</groupId>
       <artifactId>objenesis</artifactId>
       <version>2.6</version>
       <scope>test</scope>
    </dependency>
    <dependency>
       <groupId>org.mockito</groupId>
       <artifactId>mockito-core</artifactId>
       <version>2.21.0</version>
       <scope>test</scope>
    </dependency>


SpringBoot+MyBatis搭建迷你小程序

SpringBoot+MyBatis搭建小程序后台

92304 学习 · 657 问题

查看课程

相似问题