-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Closed
Description
i've installed spring boot 3.4.0, and tried to migrate to the new actuator configuration.
e.g. according to the docs:
management.endpoints.access.default=disabled
management.endpoint.loggers.access=read-only
(copy-pasted)
but when i use this, will get an exception:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [hu.f400.lifews.api.Application]: Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpointAutoConfiguration
...
Caused by: java.lang.IllegalArgumentException: No enum constant org.springframework.boot.actuate.endpoint.Access.disabled
and indeed, at Access.java you see:
...
public enum Access {
/**
* No access to the endpoint is permitted.
*/
NONE,
/**
* Read-only access to the endpoint is permitted.
*/
READ_ONLY,
/**
* Unrestricted access to the endpoint is permitted.
*/
UNRESTRICTED;
...
using these values in my config:
management.endpoints.access.default=NONE
management.endpoint.health.access=READ_ONLY
...
it just works.
Metadata
Metadata
Assignees
Labels
type: documentationA documentation updateA documentation update