第十六章 启动错误
嵌套异常为 org.springframework.beans.factory.BeanCreationException: 创建名为 'httpHandler' 的 Bean 时出错,定义在类路径资源 [org/springframework/boot/autoconfigure/web/reactive/HttpHandlerAutoConfiguration$AnnotationConfig.class] 中: 通过工厂方法创建 Bean 失败;嵌套异常为 org.springframework.beans.BeanInstantiationException: 创建 [org.springframework.http.server.reactive.HttpHandler] 失败: 方法 'httpHandler' 发生异常;嵌套异常为 org.springframework.beans.factory.BeanCreationException: 创建名为 'webHandler' 的 Bean 时出错,定义在类路径资源 [org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfiguration$EnableWebFluxConfiguration.class] 中: Bean 的初始化失败;嵌套异常为 org.springframework.beans.factory.UnsatisfiedDependencyException: 创建名为 'routePredicateHandlerMapping' 的 Bean 时出错,定义在类路径资源 [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class] 中: 通过方法 'routePredicateHandlerMapping' 参数 1 表达的不满足的依赖;嵌套异常为 org.springframework.beans.factory.UnsatisfiedDependencyException: 创建名为 'cachedCompositeRouteLocator' 的 Bean 时出错,定义在类路径资源 [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class] 中: 通过方法 'cachedCompositeRouteLocator' 参数 0 表达的不满足的依赖;嵌套异常为 org.springframework.beans.factory.UnsatisfiedDependencyException: 创建名为 'routeDefinitionRouteLocator' 的 Bean 时出错,定义在类路径资源 [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class] 中: 通过方法 'routeDefinitionRouteLocator' 参数 1 表达的不满足的依赖;嵌套异常为 org.springframework.beans.factory.BeanCreationException: 创建名为 'requestHeaderToRequestUriGatewayFilterFactory' 的 Bean 时出错,定义在类路径资源 [org/springframework/cloud/gateway/config/GatewayAutoConfiguration.class] 中: 通过工厂方法创建 Bean 失败;嵌套异常为 org.springframework.beans.BeanInstantiationException: 创建 [org.springframework.cloud.gateway.filter.factory.RequestHeaderToRequestUriGatewayFilterFactory] 失败: 方法 'requestHeaderToRequestUriGatewayFilterFactory' 发生异常;嵌套异常为 java.lang.NoSuchMethodError: org.springframework.cloud.gateway.filter.factory.AbstractChangeRequestUriGatewayFilterFactory: method <init>(Ljava/lang/Class;)V not found
内容来源: forezp/SpringCloudLearning