diff --git a/note/Spring.md b/note/Spring.md index 0d04abd..0bc359e 100644 --- a/note/Spring.md +++ b/note/Spring.md @@ -220,11 +220,11 @@ protected ConfigurableEnvironment createEnvironment() { ![Environment继承体系](images/Environment.jpg) -Environmen接口**代表了当前应用所处的环境。**从此接口的方法可以看出,其主要和profile、Property相关。 +Environmen接口**代表了当前应用所处的环境。** 从此接口的方法可以看出,其主要和profile、Property相关。 ##### Profile -Spring Profile特性是从3.1开始的,其主要是为了解决这样一种问题: 线上环境和测试环境使用不同的配置或是数据库或是其它。有了Profile便可以在 不同环境之间无缝切换。**Spring容器管理的所有bean都是和一个profile绑定在一起的。**使用了Profile的配置文件示例: +Spring Profile特性是从3.1开始的,其主要是为了解决这样一种问题: 线上环境和测试环境使用不同的配置或是数据库或是其它。有了Profile便可以在 不同环境之间无缝切换。**Spring容器管理的所有bean都是和一个profile绑定在一起的。** 使用了Profile的配置文件示例: ```xml diff --git a/note/spring-boot.md b/note/spring-boot.md index 0993d3b..a05c5ba 100644 --- a/note/spring-boot.md +++ b/note/spring-boot.md @@ -71,7 +71,7 @@ deduceWebEnvironment方法用于检测当前是否是web工程环境,检测的 这货是典型的观察者模式实现,类图: -![ApplicationListener](images/ApplicationListener.PNG) +![ApplicationListener](images/ApplicationListener.png) 在简单的web应用场景下,系统共初始化了这些监听器: diff --git a/note/spring-context.md b/note/spring-context.md index fec3dcc..8bc22f5 100644 --- a/note/spring-context.md +++ b/note/spring-context.md @@ -570,7 +570,7 @@ private static final Callback[] CALLBACKS = new Callback[] { ##### 入口 -其中前者首先被调用,时机是当BeanDefinition被合并(和父Bean),但是还没有用来创建Bean实例时。回顾下其调用入口: +其中前者首先被调用,时机是已创建Bean实例但还没有对实例执行初始化操作。回顾下其调用入口: AbstractAutowireCapableBeanFactory.doCreateBean(简略): diff --git a/pom.xml b/pom.xml index 3992b4c..adb42cd 100644 --- a/pom.xml +++ b/pom.xml @@ -90,7 +90,7 @@ com.fasterxml.jackson.core jackson-databind - 2.9.8 + 2.10.0.pr1 @@ -108,7 +108,7 @@ org.hibernate.validator hibernate-validator - 6.0.2.Final + 6.1.0.Final