I found the following problem with Spring Native (GraalVM) and some Spring-Boot Actuator endpoints:
At least the following Spring-Boot Actuator endpoints not working:
- /actuator/configprops
- /actuator/loggers
The problem seems to be related to ObjectMapper and some info is not available in runtime for this endpoints. I have solved by using my own ObjectMapper and custom LoggingEndpoint class:
For instance the following java code in the LoggingEndpoint class is not returning any info about loggers (always returns empty data {})
I was using the following versions:
- Spring-boot and Spring-Boot Actuator 2.7.1
- Spring Native plugin:
- GraalVM 22.1.0 Java 11 CE over Ubuntu 20.04
I guess the Spring-Boot Actuator is not really ready for Spring Native.
Comment From: snicoll
Thanks for the report but Spring Native is an experimental project and is not managed here. We're moving those features to Spring Boot 3 (in milestone phase at the moment). Please give a Spring Boot 3 snapshot a try if you can with ./mvw -Pnative package. We can reopen and have a look if that is still failing.