After migrating from spring boot 2.0.4 to Spring boot 2.2.13 with management port different than the server port, the management endpoints stopped working. it looks like the different management port itself is not opened for listening.
while it does not work when deploying as a war to external jetty it does work well when running as embedded jetty.
below is the relevant yml part:
management:
endpoint:
health:
show-details: "ALWAYS"
endpoints:
web:
exposure:
include: health
base-path: /manage
enabled-by-default: true
server:
port: 7080
Spring Boot does not support running the management server on a separate port when deployed to an external container. You should use an embedded web server if you want the management endpoints to be available on a separate port.