Closed LtVaios closed 2 years ago
Please provide a reproducer to allow us to have a deeper look.
Please provide a reproducer to allow us to have a deeper look.
This app is as simple as it gets and also it includes an Application Ready Listener which logs the property's value and it appears false. Although the property is false the spring-startup-info-logs still appear after starting the spring app. You can find it in:
Are there any updates on this issue?
I can reproduce the issue, this is likely a side effect of the SpringApplication
substitution defined here even if I was not able to identify exactly where this behavior come from.
But I tested this with Spring Boot 3 snapshots via https://github.com/spring-projects/spring-aot-smoke-tests which is not using anymore this substitution and it works as expected.
As we move most our efforts on Spring Boot 3 and upcoming milestone likely to provide a better native support than Spring Native itself, I will close this issue and recommend using Spring Boot 3 when available.
Although the property is set to: false (spring.main.log-startup-info=false) in my application.properties and even if you print it out it, spring still says it is set to false, the native-image logs of my app print out the spring startup-info like it is set to true. The process I am following is:
Versions:
PS: If it has any meaning to the issue, I also tried doing the same with a very simple spring app too and this issue seems to persist.