Pra*_*hav 6 spring spring-boot
我正在尝试从 spring boot 2.4.6 升级到 2.5.4 并开始收到以下错误
启动 ApplicationContext 时出错。要显示条件报告,请在启用“调试”的情况下重新运行应用程序。2021-09-28 14:10:37 [main] 错误 osboot.SpringApplication - 应用程序运行失败 org.springframework.beans.factory.BeanCreationException:创建类路径资源中定义的名为“supplierInitializer”的 bean 时出错 [org/springframework/cloud /stream/function/FunctionConfiguration.class]:调用init方法失败;嵌套异常是 org.springframework.beans.factory.BeanCreationException:创建名称为“inMemorySwaggerResourcesProvider_integrationflow.org.springframework.integration.config.SourcePollingChannelAdapterFactoryBean#0”的 bean 时出错:调用 init 方法失败;嵌套异常是org.springframework.beans.factory.BeanCreationException:创建在类路径资源[org/springframework/boot/autoconfigure/integration/IntegrationAutoConfiguration.class]中定义的名为“integrationGlobalProperties”的bean时出错:通过工厂方法实例化Bean失败;嵌套异常是 org.springframework.beans.BeanInstantiationException:无法实例化 [org.springframework.integration.context.IntegrationProperties]:工厂方法“integrationGlobalProperties”抛出异常;嵌套异常是 java.lang.IllegalAccessError: 类 org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration 尝试访问私有方法 'void org.springframework.integration.context.IntegrationProperties.()' (org.springframework.boot.autoconfigure. Integration.IntegrationAutoConfiguration 和 org.springframework.integration.context.IntegrationProperties 位于加载程序“app”的未命名模块中)
尽管升级到版本 2.4.11 工作正常,但无法理解 spring boot 2.5.X 中发生了什么变化。
小智 1
我猜你有一个旧版本的 spring-integration-core 库。删除下面的所有文件夹.m2/repository/org/springframework/integration应该可以修复它。
| 归档时间: |
|
| 查看次数: |
3233 次 |
| 最近记录: |