Skip to content

Provide a property for configuring the base path of the Actuator's endpoints when using WebFlux #22906

@ferblaca

Description

@ferblaca

Spring Boot 2.3.2.RELEASE

The settings for customization of monitoring endpoints described at this link do not work for Webflux applications.

According to the following configuration:

spring:
  webflux:
    base-path: /demowebflux
management:
  server:
    port: 9081
    servlet:
      context-path: /management
  endpoints:
    web:
      base-path: /manage
server:
  port: 9080

should display the monitoring at "http://localhost:9081/management/manage" but does so at "http://localhost:9081/manage", seems to disregard the "management.server.servlet.context-path" property.

For this other configuration:

spring:
  webflux:
    base-path: /demowebflux
management:
  endpoints:
    web:
      base-path: /manage
server:
  port: 9080

works correctly the endpoint "http://localhost:9080/demowebflux/manage".

attached demo reproducing the problem.

demoWebflux.zip

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions