SpringCloud常用注解

一 @EnableDiscoveryClient,@EnableEurekaClient的区别

  SpringCLoud中的“Discovery Service”有多种实现,比如:eureka, consul, zookeeper。

  1  @EnableDiscoveryClient   注解是基于spring-cloud-commons依赖,并且在classpath中实现; 
  2  @EnableEurekaClient     注解是基于spring-cloud-netflix依赖,只能为eureka作用;

二 

posted @ 2017-08-04 22:25  bcombetter  阅读(764)  评论(0编辑  收藏  举报