Closed dani-house closed 1 month ago
Did you follow the instructions here? https://docs.spring.io/spring-cloud-config/reference/server/aot-and-native-image-support.html
cc: @OlgaMaciaszek
Config server compiles and it runs correctly with a simple git configuration, like this:
spring:
cloud:
config:
server:
git:
uri: https://dev.azure.com/xxx/_git/repo1
password: "xxxxx"
username: "xxxxx"
Compilation error occurs when configuring "composite" profile.
This is, unfortunately, a known issue in Framework: https://github.com/spring-cloud/spring-cloud-function/issues/1074; we'll probably need to rewrite it to avoid using the supplier or manually create the AotContribution
. Will look further into it.
Hi,
It's not possible to generate a native image with the
composite
profile. Executing theprocess-aot
step, we get the error:Default code generation is not supported for bean definitions declaring an instance supplier callback: Root bean: class [org.springframework.cloud.config.server.support.**EnvironmentRepositoryProperties**]; scope=singleton; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null
application.yaml sample: