복붙노트

[SPRING] Spring Boot를 2.1.1에서 2.1.2로 업그레이드 할 때 오류가 발생했습니다.

SPRING

Spring Boot를 2.1.1에서 2.1.2로 업그레이드 할 때 오류가 발생했습니다.

SpringBoot 버전 2.1.1 릴리스와 함께 SpringBoot 응용 프로그램이 있습니다. 나는 그것을 최신 버전으로 업그레이드하려고 시도했다 : 2.1.2.RELEASE. 이제 초기화 과정에서 오류가 발생합니다. 근원에서 뭔가가 변화해야합니까? Spring 버전이 5.1.3.RELEASE에서 5.1.4.RELEASE로 업그레이드 된 것을 보았습니다.하지만 마이너 업그레이드만으로도 응용 프로그램이 중단 될 것으로 예상하지는 않았습니다.

Caused by: java.lang.IllegalAccessError: tried to access method org.springframework.core.convert.TypeDescriptor.<init>(Lorg/springframework/core/ResolvableType;Ljava/lang/Class;[Ljava/lang/annotation/Annotation;)V from class org.springframework.beans.factory.config.DependencyDescriptor
    at org.springframework.beans.factory.config.DependencyDescriptor.getTypeDescriptor(DependencyDescriptor.java:330) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1192) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    ... 85 common frames omitted

내가 뭘 잘못하고 있죠?

해결법

  1. ==============================

    1.결국 스프링 코어 5.1.3.RELEASE에 대한 고정 된 종속성이있었습니다. 이로 인해 오류가 발생했습니다.

    결국 스프링 코어 5.1.3.RELEASE에 대한 고정 된 종속성이있었습니다. 이로 인해 오류가 발생했습니다.

  2. from https://stackoverflow.com/questions/54178805/error-when-upgrading-springboot-from-2-1-1-to-2-1-2 by cc-by-sa and MIT license