springboot测试警告
AUTO
WARNING: A Java agent has been loaded dynamically
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
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
Springboot项目测试时,出现如下警告,怎么解决?
方法
取消勾选idea的检测代理
添加参数
-ea -XX:+EnableDynamicAgentLoading -Xshare:off
步骤:

先删除本次测试
然后再配置 添加参数-ea -XX:+EnableDynamicAgentLoading -Xshare:off
解决完成:

本文是原创文章,采用 CC BY-NC-SA 4.0 协议,完整转载请注明来自 上玄
评论
隐私政策
0/500
滚动到此处加载评论...


