Skip to content

Rectify javadoc for disabling management server port #17054

@shollander

Description

@shollander

According to the JavaDoc, setting the management.server.port property to 0 should disable the management server.

/**
* Sets the port of the management server, use {@code null} if the
* {@link ServerProperties#getPort() server port} should be used. To disable use 0.
* @param port the port
*/
public void setPort(Integer port) {

However, according to the Reference Guide, setting the value to -1 is what is used to disable the http management server.

Based on empirical observation, the reference guide is correct. Setting the value of
management.server.port to 0 actually causes it to use a new random port for the management server, while setting the value to -1 will disable the management server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions