SpringCloudLearning icon indicating copy to clipboard operation
SpringCloudLearning copied to clipboard

第十六章 启动报错

Open Lixianshengchao opened this issue 4 years ago • 3 comments

nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpHandler' defined in class path resource [org/springframework/boot/autoconfigure/web/reactive/HttpHandlerAutoConfiguration$AnnotationConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.http.server.reactive.HttpHandler]: Factory method 'httpHandler' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webHandler' defined in class path resource [org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfiguration$EnableWebFluxConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'routePredicateHandlerMapping' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Unsatisfied dependency expressed through method 'routePredicateHandlerMapping' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cachedCompositeRouteLocator' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Unsatisfied dependency expressed through method 'cachedCompositeRouteLocator' parameter 0; nested exception is 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 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestHeaderToRequestUriGatewayFilterFactory' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.gateway.filter.factory.RequestHeaderToRequestUriGatewayFilterFactory]: Factory method 'requestHeaderToRequestUriGatewayFilterFactory' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.cloud.gateway.filter.factory.AbstractChangeRequestUriGatewayFilterFactory: method (Ljava/lang/Class;)V not found

Lixianshengchao avatar Mar 15 '20 09:03 Lixianshengchao

我也有一样的问题. ....

Flyfoxs avatar Aug 26 '20 10:08 Flyfoxs

我也有一样的问题. ....

你好,,这个应该是缺少 pom依赖

zyazxr avatar Jan 20 '21 02:01 zyazxr

这个问题有解决办法吗 同遇到了

Xuezaijing avatar Feb 01 '21 09:02 Xuezaijing