Hi,

I was using the version 2.1.0.RELEASE and upgrade to 2.4.5 but it caused ERROR as the screenshot below. I guessed the version of Mockito causes this. Which Mockito version is recommended for Spring boot 2.4.5? thanks:

Error

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.4.5</version>
    </parent>
<dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <scope>test</scope>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.10.19</version>
            <scope>test</scope>
            <type>jar</type>
        </dependency>

Comment From: wilkinsona

Spring Boot 2.4 uses Mockito 3.6 by default and is not compatible with Mockito 1.10.x. You could with to org.mockito:mockito-core without specifying a version to allow Spring Boot's dependency management to control the version for you.

If you have any further questions, please follow up on Stack Overflow or Gitter. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.