SpringCloud GateWay网关整合报错
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘routeDefinitionRouteLocator’ defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘routeDefinitionRouteLocator’ parameter 4; nested exception is 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”)}
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”)}
一句话,GateWay中已经包含了starter-web的依赖,不需要再引入starter-web的依赖了。
在尝试整合SpringCloudGateWay时遇到错误,具体是由于在bean创建过程中找不到名为webFluxConversionService的ConversionServicebean导致的UnsatisfiedDependencyException。尽管GateWay已包含starter-web依赖,但系统仍期望至少有一个满足条件的autowire候选bean。解决方案可能是检查配置,确保ConversionService的正确设置。
4379





