eureka.md

Posted by lizhao on 07-09,2019

eureka源码阅读

启动Server

  1. EurekaServerBootstrap.contextInitialized
  2. start:44, EurekaServerInitializerConfiguration (org.springframework.cloud.netflix.eureka.server)
  3. doStart:184, DefaultLifecycleProcessor (org.springframework.context.support)
  4. access$200:53, DefaultLifecycleProcessor (org.springframework.context.support)
  5. start:362, DefaultLifecycleProcessor$LifecycleGroup (org.springframework.context.support)
  6. startBeans:159, DefaultLifecycleProcessor (org.springframework.context.support)
  7. onRefresh:123, DefaultLifecycleProcessor (org.springframework.context.support)
  8. finishRefresh:893, AbstractApplicationContext (org.springframework.context.support)
  9. finishRefresh:163, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context)
  10. refresh:552, AbstractApplicationContext (org.springframework.context.support)
  11. refresh:142, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context)
  12. refresh:775, SpringApplication (org.springframework.boot)
  13. refreshContext:397, SpringApplication (org.springframework.boot)
  14. run:316, SpringApplication (org.springframework.boot)
  15. run:1260, SpringApplication (org.springframework.boot)
  16. run:1248, SpringApplication (org.springframework.boot)
  17. main:16, Pro051SourceReadEurekaApplication (com.lizhaoblog.scl.pro051sourcereadeureka)

看看各个的代码

这一套步骤照下来的过程,主要就是通过直接点出来的,可以查看被谁调用了

DefaultLifecycleProcessor