반응형
springboot버전에 맞지 않는 spring cloud dependency를 추가하게 되면 다음과 같은 에러메세지를 만난다.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'configurationPropertiesBeans' defined in class path resource
[org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]:
Bean instantiation via factory method failed; nested exception is org.springframework.beans
.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.conte
xt.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(Constr
uctorResolver.java:658) ~[spring-beans-5.3.12.jar:5.3.12]
.
.
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]:
Factory method 'configurationPropertiesBeans' threw exception;
nested exception is java.lang.NoClassDefFoundError
Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
따라서 아래의 표와같이 springboot version에 맞는 springcloud version을 맞춰주도록 하자~!
Release TrainBoot Version
2020.0.x aka Ilford | 2.4.x, 2.5.x (Starting with 2020.0.3) |
Hoxton | 2.2.x, 2.3.x (Starting with SR5) |
Greenwich | 2.1.x |
Finchley | 2.0.x |
Edgware | 1.5.x |
Dalston | 1.5.x |
반응형
'Programming > Java,Spring' 카테고리의 다른 글
springboot aop Pointcut is not well-formed: expecting ')' (0) | 2022.07.06 |
---|---|
[ Spring ] RestTemplate대신 WebClient (0) | 2021.04.02 |
[ Java ] 자바 7 이전과 이후 finally 그리고 리소스 close (0) | 2021.02.07 |
[ Java ] Java stream skip 사용시 IllegalArgumentException: (0) | 2021.01.14 |
[ Java ] excel poi background color is not change and black (0) | 2020.12.17 |