When using IntelliJ IDEA Ultimate, launching a Spring Boot project automatically displays the port number in the IDE.
I would like to understand the principle behind this.

Even when I set server.port=0 in the configuration file and turn off the output logs, IntelliJ IDEA still manages to recognize the port number. It is said online that this information is obtained from JMX. Indeed, when I disable the JMX endpoints in the IDEA run configuration, the port number is no longer recognized. However, when I use JConsole to inspect all properties of the running Spring Boot project, none of the values match the startup port number.

Источник: https://stackoverflow.com/questions/781 ... ot-project