EurekaServerApplication: Failed to retrieve application JMX service URL

导入一个spring cloud的项目,启动时候报:EurekaServerApplication: Failed to retrieve application JMX service URL

在这里插入图片描述

错误信息

EureKaServerApplication:Failed to retrieve application JMX service URL

的错误,网上找了好久,没找到解决方案,自己摸索,解决了。下面简单说下经过。
看到错误信息和jmx有关,就去启动配置取消了。

选择项目 ——>然后选择spring boot 插件 ,找到到启动项目,有一个spring boot 选择项,
取消Enable JMX agent 选项

在这里插入图片描述

点击Edit configuration templates >>spring boot >>modify options

在这里插入图片描述

点击 Disable JMX agent 就可

在这里插入图片描述

点击 Apply >> OK
agent 就可
在这里插入图片描述

点击 Apply >> OK
重新运行main入口

Logo

一站式 AI 云服务平台

更多推荐