Skip to content
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

Actuator does not display immutable configuration properties when using @Validated #19219

noriyuki106 opened this issue Dec 4, 2019 · 0 comments


Copy link

@noriyuki106 noriyuki106 commented Dec 4, 2019

Spring Boot: 2.2.1.RELEASE
Operating System: Mac OS 10.14.6 (Mojave)
Kotlin 1.3.60

When I added @Validated annotation to an immutable configuration properties class (using @ConstructorBinding), actuator configprops does not display its fields.

For example:

@ConfigurationProperties(prefix = "prop.validated")
data class ValidatedProp(
    val field: String

actuator does not display its fields:

"prop.validated-com.example.demo2.ValidatedProp": {
  "prefix": "prop.validated",
  "properties": {}

This configuration properties class is correctly initialized and not impacted in my application.

When I remove either @Validated or @ConstructorBinding, actuator seems to display its properties correctly.

Here is my example project:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.