Exception encountered during context initialization on application startup.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@2c13da15]
...
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[na:na]
... 42 common frames omitted
Possible Solution
My workaround is to downgrade Spring Boot version to 2.3.5.RELEASE.
Context (Environment)
spring-cloud-starter-kubernetes-config
v1.1.8.RELEASEspring-boot-starter-parent
v2.4.4Expected behavior
The application should be able to start.
Current behavior
Exception encountered during context initialization on application startup.
Possible Solution
My workaround is to downgrade Spring Boot version to
2.3.5.RELEASE
.Here is my
pom.xml
file: