なしでSpring Cloud Zuul
を使用します。私たちはSpringとの既存のプロジェクトを持っていますが、SpringBootApplication
なしでZuul
を設定するのに問題があります。SpringBootなしでSpring Cloud Zuulを使用することは可能ですか?
私は@EnableZuulProxyアノテーションを使用すると、私は次のエラーを取得する:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.zuul.ZuulProxyConfiguration': Unsatisfied dependency expressed through field 'discovery'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.cloud.client.discovery.DiscoveryClient' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
No qualifying bean of type 'org.springframework.cloud.client.discovery.DiscoveryClient' available
そして、なぜそれが発見クライアントを必要ですか?
私はspring-cloud-starter-zuul依存性をスプリングブートなしで使用できますか?