Skip to content

management.context-path cannot work alone #10200

@xiangyq000

Description

@xiangyq000

For a Springboot application with actuator, config its applicaton.properties as below

server.port=8888
server.context-path=/app
management.context-path=/manage

Start up the application, but find that localhost:8888/manage/info returns a 404 error. Furthermore, the /info endpoint could be visited via localhost:8888/app/manage/info.

What is confusing is that if I add management.port=9999 into application.properties, then the /info endpoint can be visited via localhost:9999/manage/info.

Is it an intentional design or a bug to compose the application's management uri as host:port/${server.context}/${management.context-path} when management.port is not set explicitly?

springboot version:1.5.6.RELEASE

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions