springcloud gateway中遇到的问题

眉间皱痕 提交于 2020-01-13 04:09:37

我用到的gateway的版本是 2.1.2.RELEASE
项目启动时遇到的错误信息如下:

No qualifying bean of type 'org.springframework.core.convert.ConversionService' available: expected 

这是因为项目父模块中的引入了spring-boot-starter-web的依赖,

<dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-web</artifactId>
 </dependency>

springMvc和gateway中的webFlux是有冲突的(关于spring mvc 和 spring webFlux大家可以自行搜索区别)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!