- 博客(7)
- 资源 (9)
- 收藏
- 关注
原创 springcloud 配置中心原理
客户端加载配置org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration#initializePropertySourceBootstrapConfiguration 类继承了ApplicationContextInitializer ,应用初始化时就会调用initialize 方法而ini...
2019-12-30 18:14:42 1177
原创 spring boot 外部化配置源码跟踪
先展示下官方外部化配置文档点击查看官方链接配置优先级如下截图,序号越小优先级越高跟踪下源码org.springframework.boot.SpringApplication#run(java.lang.String…) 方法开始public ConfigurableApplicationContext run(String... args) { StopWatch stopW...
2019-12-29 18:04:42 111
原创 springcloud bootstrap context加载过程解析以及怎么成为main context的parent
The Bootstrap Application Context概念这里是引用A Spring Cloud application operates by creating a “bootstrap” context, which is a parent context for the main application. It is responsible for loading co...
2019-12-19 00:09:03 960
原创 SpringBoot自动配置注解原理解析
自动配置开始于 @SpringBootApplication@SpringBootApplication 类定义@Target(ElementType.TYPE)@Retention(RetentionPolicy.RUNTIME)@Documented@Inherited@SpringBootConfiguration@EnableAutoConfiguration@Com...
2019-12-09 22:20:24 206
原创 spring boot 配置文件加载
加载是在ConfigFileApplicationListener监听器中加载的监听逻辑public void onApplicationEvent(ApplicationEvent event) { if (event instanceof ApplicationEnvironmentPreparedEvent) { onApplicationEnvironmentPrepar...
2019-12-08 21:38:37 151
原创 spring boot加载bean定义的过程
不同的spring boot应用加载bean定义的过程是不同的,本例是servlet应用程序加载bean定义的过程,并顺带了mybatis 的mapper加载放一张图,我喜欢从头梳理整个流程,所以main方法一步步跟进来的...
2019-12-08 19:39:42 187
原创 maven 构建多moudle archetype
官方文档地址 lhttp://maven.apache.org/guides/mini/guide-creating-archetypes.htm单看这个官方文档,构建一个多moudle archetype还是有点无从下手的,因为modules 怎么定义没详细说再参考网上其他成功经验https://blog.csdn.net/qxxiaohui/article/details/820131...
2019-12-05 10:38:19 333
深入理解Java虚拟机:JVM高级特性与最佳实践(第2版)源代码
2017-09-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人