nacos-spring-boot-project icon indicating copy to clipboard operation
nacos-spring-boot-project copied to clipboard

升级到spring 2.4.1 提示ConfigurationBeanFactoryMetadata 找不到

Open onexuan opened this issue 4 years ago • 15 comments

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nacosConfigurationPropertiesBinder': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alibaba.boot.nacos.config.binder.NacosBootConfigurationPropertiesBinder]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata

2.4.1 ConfigurationBeanFactoryMetadata is removed

onexuan avatar Dec 23 '20 07:12 onexuan

https://github.com/nacos-group/nacos-spring-boot-project/issues/159 一样问题

onexuan avatar Dec 23 '20 07:12 onexuan

升级,我也遇到了同样的问题,你怎么解决的 @onexuan

kpioneer123 avatar Dec 30 '20 06:12 kpioneer123

升级,我也遇到了同样的问题,你怎么解决的 @onexuan

因为编译工程镜像时要求spring 2.4.0以上,试改一下,但nacos代码总体不熟悉,其他开源库也没支持2.4.1,只能再==看

onexuan avatar Dec 30 '20 06:12 onexuan

Update on NAOCS-Starter's attempt to be 2.4 compatible

  • [x] Find the problem
  • [x] Solve the problem
  • [ ] Complete compatibility and NACOS is working
  • [ ] Merge PR

https://github.com/alibaba/spring-cloud-alibaba/issues/1901

XiaoZiShan avatar Jan 06 '21 13:01 XiaoZiShan

我也是,spring-boot 2.4.1-RELEASE nacos-config 使用的是 2.0.0

dai19470 avatar Jan 07 '21 07:01 dai19470

什么时候能发布啊

pstinghua avatar Jan 19 '21 10:01 pstinghua

隔壁 nacos 库里有解决方案 https://github.com/alibaba/nacos/issues/4554

linyongfu2013 avatar Mar 04 '21 09:03 linyongfu2013

springboot 2.4.7 2.5.1都出来了. 这问题还不解决.非让我们自己魔改吗

ilaotan avatar Jun 21 '21 06:06 ilaotan

这半年过去了。。还没改。。。

bearxsh avatar Jul 28 '21 09:07 bearxsh

呵呵,以后还是少用阿里的开源组件,各种问题。这都快一年了,还没解决,大家不可能为了这破玩意不升级spring boot版本。

502110983 avatar Nov 19 '21 10:11 502110983

催一下~

iacker avatar Dec 16 '21 09:12 iacker

好耶!

Xy718 avatar Feb 18 '22 07:02 Xy718

一样

liangwei0101 avatar May 09 '22 13:05 liangwei0101

升级到0.2.11解决该问题,22年6月份发的版本。目前SpringBoot2.7.1可以使用,还有一种方案时更换alibaba-cloud,使用cloud的方式集成

it235 avatar Jul 12 '22 09:07 it235

@it235 SpringBoot2.7.1 试过可以了吗?

onexuan avatar Jul 13 '22 08:07 onexuan