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 startup endpoint fails to serialize JSON when field visability is set to 'any' #32297
Comments
This is somewhat related to #20291. I'm a little surprised that the same error isn't thrown during regular startup since @iaptekar Do you have the |
Yes I have jsr310 on the classpath. I am using it via spring-boot-starter-web. Though I have tried adding it as an extra dependency and even had a go at configuring the object mapper in a |
Jackson's message is misleading. It suggests adding We could address this without tackling #20291 by mapping the |
We might be able to use |
I have a branch at https://github.com/philwebb/spring-boot/tree/gh-32297 that shows how |
I like the approach. It seems low risk and addresses the problem without making a breaking change to public API. One for 3.1.12? |
I have a demo project using Spring Boot 2.7.3. The only dependencies are the web and actuator starters. I try to start the application with a
BufferingApplicationStartup
and setmanagement.endpoints.web.exposure.include=*
inapplication.properties
. This goes well and I can access startup metrics at/actuator/startup
.However, if I add the property
spring.jackson.visibility.field=any
toapplication.properties
and hit theactuator/startup
endpoint I get the following error:None of the other
spring.jackson
properties I tried caused this error. Is there perhaps an issue with theObjectMapper
initialization for the startup actuator?The text was updated successfully, but these errors were encountered: