mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Previously, we tried to prevent spring-boot-docker-compose from causing problems with AOT and native images by excluding it from the AOT processing classpath. This allowed AOT processing to succeed. We cannot apply the same exclusion to the native image classpath so spring-boot-docker-compose was still included in the native image. This results in a failure at runtime due to missing reflection hints. This commit reverts that changes that excluded spring-boot-docker-compose from the AOT processing classpath. This allows AOT processing to generate reflection hints but reintroduces the failure caused by the connection details bean definitions using an instance supplier callback. To overcome this problem we disable DockerComposeLifecycleManager during AOT processing and in a native image. This ensures that no attempt is made to call docker compose up and no connection details beans are defined. Fixes gh-35676 |
||
---|---|---|
.. | ||
spring-boot | ||
spring-boot-actuator | ||
spring-boot-actuator-autoconfigure | ||
spring-boot-autoconfigure | ||
spring-boot-dependencies | ||
spring-boot-devtools | ||
spring-boot-docker-compose | ||
spring-boot-docs | ||
spring-boot-parent | ||
spring-boot-starters | ||
spring-boot-test | ||
spring-boot-test-autoconfigure | ||
spring-boot-testcontainers | ||
spring-boot-tools |