Spring-cloud-gateway: No qualifying bean of type 'org.springframework.web.reactive.DispatcherHandler' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

Created on 4 May 2018  ·  9Comments  ·  Source: spring-cloud/spring-cloud-gateway

version:M8
```java
Message: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gatewayControllerEndpoint' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration$GatewayActuatorConfiguration.class]: Unsatisfied dependency expressed through method 'gatewayControllerEndpoint' parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hystrixGatewayFilterFactory' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration$HystrixConfiguration.class]: Unsatisfied dependency expressed through method 'hystrixGatewayFilterFactory' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.web.reactive.DispatcherHandler' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

Most helpful comment

Exclude tomcat, jetty or undertow

All 9 comments

Please update to RC1 which is the latest. Gateway only works with Netty at the moment. Servlet containers are not supported

thanks,i will try this.

i try update the cloud version to Finchley.RC1.but this problem is also .
image
image

```java


APPLICATION FAILED TO START


Description:

Parameter 0 of method hystrixGatewayFilterFactory in org.springframework.cloud.gateway.config.GatewayAutoConfiguration$HystrixConfiguration required a bean of type 'org.springframework.web.reactive.DispatcherHandler' that could not be found.

org.springframework.web.reactive.DispatcherHandler

This is not a servlet container

this error is slover. thanks ,the fail reason is
i introduced spring-mvc.excludes mvc.it's solver

how to solve it??

i also have this problem

Exclude tomcat, jetty or undertow

@spencergibb 非常棒

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thirunar picture thirunar  ·  6Comments

pravinkumarb84 picture pravinkumarb84  ·  7Comments

ryanjbaxter picture ryanjbaxter  ·  6Comments

zjengjie picture zjengjie  ·  6Comments

samtonyclarke picture samtonyclarke  ·  3Comments