jconsole连接本地进程报安全连接失败

连接本地程序报错

在idea工具中添加如下命令

-Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.profiles.active=ci

连接成功

原文地址:https://www.cnblogs.com/mutong1228/p/10612838.html