在运行仪表板中运行多个应用程序时,Intellij显示端口号

时间:2019-05-07 08:29:37

标签: java spring-boot intellij-idea run-dashboard

以前,在运行应用程序时,运行仪表板IntelliJ会在应用程序的运行配置名称旁边显示端口号。

请参见以下屏幕截图。我期望TracingAppA说TracingAppA:8001,但它只是说TracingAppA。

enter image description here

我可以通过搜索日志找到端口号,但希望将其显示在应用程序名称旁边。这里发生了什么,默认值已更改?如果可以,我该如何将它们改回来?

2 个答案:

答案 0 :(得分:1)

这是一个已知的错误,请参见https://youtrack.jetbrains.com/issue/IDEA-210665 您将不得不等待取回端口号。

答案 1 :(得分:0)

这是自IntelliJ v2019起的错误。以下步骤将再次显示端口(对于Spring Boot应用程序)

  1. 转到运行->编辑配置...
  2. 在左侧树中,展开“ Spring Boot”节点,然后选择您的Spring boot应用程序
  3. 在右侧面板中,将以下VM选项(末尾)添加:

-Dcom.sun.management.jmxremote.authenticate = false -Dcom.sun.management.jmxremote.ssl = false -Dcom.sun.management.jmxremote.port = app_port_here

不必更改app_port_here,并且该端口在每个spring boot应用程序中都是唯一的。

相关问题