org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bootstrapImportSelectorConfiguration': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError
当我从ideal自动生成一个springboot+springCloud的基础项目后,无法运行。报出如上错误
从错误看出是少了某些配置文件。然而,spring项目正常情况下是可以直接启动的。所以推测,是springBoot和springCloud版本问题。将springCloud版本从Hoxton.SR4改为后。正常启动!
注意:每次修改依赖后,ReimportMaven和build Project一步都不能少
本文解决了一个关于SpringBoot结合SpringCloud项目启动失败的问题,通过调整SpringCloud版本从Hoxton.SR4到其他版本,成功解决了BeanCreationException异常,确保了项目的正常运行。


被折叠的 条评论
为什么被折叠?



