Skip to content

Springdoc with Actuator server in different port that embedded tomcat server #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cfpperche opened this issue Apr 28, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@cfpperche
Copy link

Describe the bug
Dependencies:
org.springframework.boot:spring-boot-starter-web:2.2.6-RELEASE
org.springframework.boot:spring-boot-starter-actuator:2.2.6-RELEASE
org.springdoc:springdoc-openapi-ui:1.3.4

If I change the actuator server por and set springdoc-show-actuator property to true I have error like this
....
....
....
servico-planocontas | ***************************
servico-planocontas | APPLICATION FAILED TO START
servico-planocontas | ***************************
servico-planocontas |
servico-planocontas | Description:
servico-planocontas |
servico-planocontas | Parameter 0 of method actuatorProvider in org.springdoc.webmvc.core.SpringDocWebMvcConfiguration$SpringDocWebMvcActuatorConfiguration required a bean of type 'org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping' that could not be found.
servico-planocontas |
servico-planocontas |
servico-planocontas | Action:
servico-planocontas |
servico-planocontas | Consider defining a bean of type 'org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping' in your configuration.

If I have disable springdoc.show-actuator and keep server and management.server with different ports this works but I can't map actuator endpoints in swagger-ui

sorry my english, i try...

To Reproduce

application.yml
....
server.port: 8080
management.server.port: 4004
springdoc.show-actuator: true

Expected behavior
to be executed without any errors

Screenshots

@bnasslahsen
Copy link
Collaborator

@cfpperche,

This is a partial fix, in order to hide the error.
The support for actuator on different ports can be addressed in a future release.

@bnasslahsen bnasslahsen added the bug Something isn't working label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants