1.出现的问题
Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build what is described in Mockito\'s documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3WARNING: A Java agent has been loaded dynamically (E:\\develop\\apache-maven-3.9.4\\mvn_repo\\net\\bytebuddy\\byte-buddy-agent\\1.15.11\\byte-buddy-agent-1.15.11.jar)WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warningWARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more informationWARNING: Dynamic loading of agents will be disallowed by default in a future releaseJava HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
2.修改pom.xml配置
org.mockito mockito-subclass 5.14.2
org.apache.maven.plugins maven-surefire-plugin 3.5.2 -javaagent:\"${settings.localRepository}/org/mockito/mockito-core/5.14.2/mockito-core-5.14.2.jar\"