gulimall-springboot启动失败
[toc]
✨你好啊,我是“ 罗师傅”,是一名程序猿哦。
🌍主页链接:楚门的世界 - 一个热爱学习和运动的程序猿
☀️博文主更方向为:分享自己的快乐
❤️一个“不想让我曾没有做好的也成为你的遗憾”的博主。
💪很高兴与你相遇,一起加油!
前言
启动springboot项目,Unable to start web server; nested exception is org.springframework.beans.factory
一、👻👻👻问题描述
(1) 启动SpringBoot项目时出现异常:

(2)由于在使用springBoot创建项目的时候创建了cloud依赖,后面又改了springBoot的版本。


二、🌟🌟🌟异常原因
- 根本原因:springboot父工程的依赖版本,与springcloud某个组件依赖版本不匹配。
- 直接原因:利用IDEA快捷创建boot项目且导入某个cloud组件依赖时。IDEA会默认使用最新版本组件(包括boot项目也会使用最新版本创建),后面一旦改动boot项目版本就会导致两者之间的版本冲突。
三、✌✌✌解决方法

springboot:2.1.8.RELEASE 官方建议 Greenwich.SR6
当然选择低一点版本也可以哈我用的 Greenwich.SR3




四、🌞🌞🌞测试结果
springBoot正常启动

五、🍀🍀🍀注意
- 当boot项目中导入cloud组件时,尤其需要注意两者之间的版本是否匹配!!!
- boot项目中只要存在一个cloud组件版本与boot项目版本不匹配,都会出现很多异常,包括无法启动。
❤️❤️❤️忙碌的敲代码也不要忘了浪漫鸭!
🍉🍉🍉此博文会持续更新,记得常回来看看哦,一起加油做出更好看更有用的博文呀💪。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 楚门的世界!
评论