BeanCreationException 错误更新 Spring boot 版本 2.2.7.RELEASE 到 2.7.0

问题描述 投票:0回答:0

我是这样加的:

<spring-boot.version\>2.7.0\</spring-boot.version\>

<spring-cloud.version\>2021.0.3\</spring-cloud.version\>

  <dependency>
                    <groupId>org.springframework.cloud</groupId>
                    <artifactId>spring-cloud-dependencies</artifactId>
                    <version>${spring-cloud.version}</version>
                    <type>pom</type>
                    <scope>import</scope>
 </dependency>

运行后我得到这个错误:

org.springframework.beans.factory.BeanCreationException:在类路径资源 [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class] 中创建名为“configurationPropertiesBeans”的 bean 时出错:合并 bean 定义的后处理失败;嵌套异常是 java.lang.IllegalStateException:无法从 ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@3b192d32] 内省类 [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] ………… 由以下原因引起:java.lang.IllegalStateException:无法从 ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@3b19

内省类 [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]

Sprinframework.cloud 版本在 Maven clean 后出现在依赖项中的版本 2.2.7,安装:

maven dependencies here

我该如何解决这个错误,谢谢。

spring-boot maven spring-cloud
© www.soinside.com 2019 - 2024. All rights reserved.