-
Notifications
You must be signed in to change notification settings - Fork 41k
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
Custom actuator endpoint not working in 3.4.0-RC1 #42987
Comments
In Spring Boot 3.3 the We're reading To fix things, you can do the following: spring:
application:
name: testactuator
management:
endpoints:
enabled-by-default: false
web:
exposure:
include: "*"
endpoint:
health:
enabled: true
custom:
enabled: true
cors:
allowed-origins: "*"
allowed-methods: GET (or use the new access properties). I'm not sure if we should treat this as a regression or not. Arguably, it's more consistent the way things are in 3.4. |
I had added manually the endpoint and it work well but in my case we have dozens of custom actuators endpoints managed by a team and hundreds of applications using them and managed by a lot developers, so it can be seen as a regression. But I agree with you that it is more comprehensible. |
I think we should leave things as-is for 3.4 but update the release notes to call out that |
I've added something to the end of this section in the release notes. |
Thanks @wilkinsona, I'm going to close this one. |
Hi,
I have a custom actuator endpoint that works perfectly in Spring Boot 3.3.5, but it no longer functions in Spring Boot 3.4.0-RC1 (I have a 404 error because the endpoint is not registered).
I created an example project to demonstrate the issue. The source code is available at this GitHub repository. The main branch uses Spring Boot 3.3.5, while the 3.4.0-RC1_deprecated branch is based on Spring Boot 3.4.0-RC1.
I have also tried the reworked method with access on 3.4.0-RC1_access, but it does not resolve the issue either.
Test results can be found here
The code of the custom actuator endpoint:
The configuration:
The text was updated successfully, but these errors were encountered: