gpt4 book ai didi

java - SpringBoot从2.1.1升级到2.1.2报错

转载 作者:行者123 更新时间:2023-11-29 04:12:33 24 4
gpt4 key购买 nike

我有一个 SpringBoot 应用程序,其 SpringBoot 版本为 2.1.1.RELEASE。我尝试将其升级到最新版本: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

我做错了什么?

最佳答案

最后是对spring-core 5.1.3.RELEASE的固定依赖。这导致了错误。

关于java - SpringBoot从2.1.1升级到2.1.2报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54178805/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com