Skip to content

Actuator endpoints issue in springboot3.* #36111

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
EddyZhang7 opened this issue Jun 29, 2023 · 7 comments
Closed

Actuator endpoints issue in springboot3.* #36111

EddyZhang7 opened this issue Jun 29, 2023 · 7 comments

Comments

@EddyZhang7
Copy link

EddyZhang7 commented Jun 29, 2023

Hi , I upgrade springboot2.0 to springboot3.0.
I find a issue, in springboot2.0 , http://localhost:8080/contextpath/actuator is ok, but in springboot3.0 return 404. When add dispatcherservletpath in url is ok ,for example , http://localhost:8080/contextpath/Dispatcherservletpath/actuator is ok.
I',m confused why url should add Dispatcherservletpath in springboot3.0

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 29, 2023
@wilkinsona
Copy link
Member

As requested earlier, please provide a minimal sample that reproduces the behavior you are describing.

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label Jun 29, 2023
@EddyZhang7
Copy link
Author

EddyZhang7 commented Jun 30, 2023

Because of security, i can't provide sample , in application.yml

server:
  port: port
  servlet:
    context-path: /contextpatch
    
management:
  endpoints:
    enabled-by-default: false
    shutdown:
      enabled: false
    web:
      base-path: /actuator
      exposure:
        include: info, prometheus

In Springboot 2
contextpatch/actuator-base-path is ok
In Springboot 3
contextpatch/dispatcherservlet/actuator-base-path is ok

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jun 30, 2023
@wilkinsona
Copy link
Member

It doesn't need to be your actual application. In fact, we'd prefer that it isn't. We just need the bare minimum of code and configuration that's required to reproduce the problem. Creating a new app on start.spring.io is often a good place to start.

@wilkinsona wilkinsona added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Jun 30, 2023
@EddyZhang7
Copy link
Author

Thanks , Maybe actuator endpoints moved in Spring Boot 3.* , but i not find changelog

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jun 30, 2023
@wilkinsona
Copy link
Member

No, they haven't moved. If you want us to spend any more time on this, please spend some time providing the requested sample application.

@wilkinsona wilkinsona added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Jun 30, 2023
@spring-projects-issues
Copy link
Collaborator

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Jul 7, 2023
@EddyZhang7
Copy link
Author

Thanks

@snicoll snicoll closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2023
@snicoll snicoll removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged status: feedback-reminder We've sent a reminder that we need additional information before we can continue labels Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants