SpringBoot单元测试时提示:
WARNING: A Java agent has been loaded dynamically (/Users/xxx/.m2/repository/net/bytebuddy/byte-buddy-agent/1.14.10/byte-buddy-agent-1.14.10.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
解决办法:
虚拟机参数添加:
-XX:+EnableDynamicAgentLoading