springBoot项目启动报错
![](https://img-blog.csdnimg.cn/img_convert/b9cbc248da4c4f3daa230659f56a75b9.png)
经网上查询问题
发现是依赖冲突的问题
因为我使用了spring cloud gateway,它是基于webflux的,如果非要web支持的话需要导入spring-boot-starter-webflux而不是spring-boot-start-web。
因此需要删除业务模块的spring-boot-start-web依赖
![](https://img-blog.csdnimg.cn/img_convert/f3e53cf2dd5946c290daf90e80d7383a.png)
重启项目,成功
springBoot项目启动报错
经网上查询问题
发现是依赖冲突的问题
因为我使用了spring cloud gateway,它是基于webflux的,如果非要web支持的话需要导入spring-boot-starter-webflux而不是spring-boot-start-web。
因此需要删除业务模块的spring-boot-start-web依赖
重启项目,成功