智能路由 Zuul

  1. dependency: spring-cloud-starter-netflix-zuul
  2. @EnableZuulProxy(included: @EnableDiscoveryClient, @EnableCircuitBreaker)
  3. ZuulFilter @Override shouldFilter(),filterType(), filterOrder(),run()
  4. 配置zuul.routes.xxx: path,url/service-id
  5. 通过Eureka中已经注册的服务名,调用服务(使用service-id)

Read More >>

服务治理 Eureka

  1. dependency: spring-cloud-starter-netflix-eureka-server
  2. 实现一个服务注册中心: @EnableEurekaServer,eureka.client.registerWithEureka & fetchRegistry:false
  3. 注册一个服务: @EnableEurekaClient/@EnableDiscoveryClient
  4. 配置服务注册中心的位置 eureka.client.serviceUrl.defaultZone(默认是 http://localhost:8761/eureka/)
  5. 注册的服务名会使用 spring.application.name

Read More >>

ES6

  1. 变量,作用域,Symbol
  2. Object,Function,Array,Set,Map
  3. 解构赋值,扩展运算符,箭头函数
  4. 代理器Proxy,修饰器Decorator,遍历器Iterator
  5. 类,模块

Read More >>

MongoDB

  1. 使用Docker搭建MongoDB测试环境
  2. Transaction,ACID,WriteConcern
  3. CRUD
  4. Index
  5. Aggregate
  6. Replica Set & Sharding
  7. MongoDB 4.0 New Feature
  8. Applicaiton

Read More >>