---接下来是加载zipkinServer的注解部分
Step completed: "thread=main", org.springframework.boot.BeanDefinitionLoader.load(), line=158 bci=37158 if (isComponent(source)) {main[1] next> Step completed: "thread=main", org.springframework.boot.BeanDefinitionLoader.load(), line=159 bci=40159 this.annotatedReader.register(source);main[1] print this.annotatedReader this.annotatedReader = "org.springframework.context.annotation.AnnotatedBeanDefinitionReader@7df60067"main[1] print source source = "class zipkin.server.ZipkinServer"main[1] next> Step completed: "thread=main", org.springframework.boot.BeanDefinitionLoader.load(), line=160 bci=55160 return 1;
看了下笔记,这里会扫描哪些类,是由主函数中的代码定义的。
@SpringBootApplication@EnableZipkinServerpublic class ZipkinServer { public static void main(String[] args) { //看这里 SpringApplicationBuilder builder = new SpringApplicationBuilder(ZipkinServer.class);
---