dyc87112 / blog-comments

5 stars 1 forks source link

Spring Cloud构建微服务架构:服务消费(基础)【Dalston版】 | 程序猿DD #177

Open dyc87112 opened 6 years ago

dyc87112 commented 6 years ago

http://blog.didispace.com/spring-cloud-starter-dalston-2-1/

通过上一篇《Spring Cloud构建微服务架构:服务注册与发现》,我们已经成功地将服务提供者:eureka-client或consul-client注册到了Eureka服务注册中心或Consul服务端上了,同时我们也通过DiscoveryClient接口的getServices获取了当前客户端缓存的所有服务清单,那

enjoyCoding666 commented 6 years ago

消费者启动后报错: Caused by: org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

mayuechuan commented 5 years ago

为啥刷新consumer页面总是规律性的一次行一次不行的重复,不行的时候consumer报404

SpringStudent commented 5 years ago

我发现,如果先启动eureka-client,在启动eureka-server。/dc接口会获取不到注册到注册中心的服务

zhyblack commented 5 years ago

consul-client consul-consumer 访问 http://localhost:2101/consumer serviceInstance 为 null,http://localhost:2001/dc 返回 Services : [consul, eureka-client, eureka-consumer]