Fix Spring Boot 2.7.6+ compatiblity
fbus opened this issue · 0 comments
fbus commented
As far as I can tell, this commit broke compatibility with spring native :
spring-projects/spring-boot@463a614
It was working fine with 2.7.5. Now with 2.7.6 I get errors like
[INFO] --- spring-aot-maven-plugin:0.12.1:generate (generate) @ integrationtest-artifactId-api ---
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/ApplicationServletEnvironment
at org.springframework.boot.AotApplicationContextFactory.getOrCreateEnvironment(AotApplicationContextFactory.java:80)
[INFO] --- spring-aot-maven-plugin:0.12.1:generate (generate) @ integrationtest-artifactId-api ---
Exception in thread "main" java.lang.NoSuchMethodError: 'org.springframework.core.env.StandardEnvironment org.springframework.boot.EnvironmentConverter.convertEnvironmentIfNecessary(org.springframework.core.env.ConfigurableEnvironment, java.lang.Class)'
at org.springframework.boot.AotApplicationContextFactory.loadEnvironment(AotApplicationContextFactory.java:68)
at org.springframework.boot.AotApplicationContextFactory.createApplicationContext(AotApplicationContextFactory.java:52)
I understand that spring native 0.12 is not supported since spring boot 3 is released. I won't make the jump to 3.0 until 6 months at least in my company so... If possible, a 0.12.2 release would be appreciated :D
Merci !