程子的博客

想得到从未得到的东西,就要去做从未做过的事

aaaaa
  menu
46 文章
23633 浏览
0 当前访客
ღゝ◡╹)ノ❤️

Spring Cloud Gateway 异常

1. webFluxConversionService 异常

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.core.convert.ConversionService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value=webFluxConversionService)}

  • 配置中已经排除了starter-web , 但是启动还是不行
        <!-- gateway -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-web</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

  • 后来经过排查发现还引用了Hystrix-dashboard , 此包也包含starter-web , 去除此熔断器监控包, 启动正常

标题:Spring Cloud Gateway 异常
作者:chengzime
地址:https://chengzime.com.cn/articles/2020/10/21/1603268010587.html