From bb36b4d9d02b9fd5df4468fc6de772e0f6529cec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2019 03:59:15 +0000 Subject: [PATCH 1/6] Bump jackson-databind from 2.9.8 to 2.9.10.1 Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.9.8 to 2.9.10.1. - [Release notes](https://github.com/FasterXML/jackson/releases) - [Commits](https://github.com/FasterXML/jackson/commits) Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3992b4c..08ecb2f 100644 --- a/pom.xml +++ b/pom.xml @@ -90,7 +90,7 @@ com.fasterxml.jackson.core jackson-databind - 2.9.8 + 2.9.10.1 From 2614b08cfd35ab537b9f003849ebb7d1b3f43a5c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2020 17:07:09 +0000 Subject: [PATCH 2/6] Bump hibernate-validator from 6.0.2.Final to 6.1.0.Final Bumps [hibernate-validator](https://github.com/hibernate/hibernate-validator) from 6.0.2.Final to 6.1.0.Final. - [Release notes](https://github.com/hibernate/hibernate-validator/releases) - [Changelog](https://github.com/hibernate/hibernate-validator/blob/master/changelog.txt) - [Commits](https://github.com/hibernate/hibernate-validator/compare/6.0.2.Final...6.1.0.Final) Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3992b4c..e8235ba 100644 --- a/pom.xml +++ b/pom.xml @@ -108,7 +108,7 @@ org.hibernate.validator hibernate-validator - 6.0.2.Final + 6.1.0.Final From a41e7b00f3205ab420bb8aebaa47c500ae186773 Mon Sep 17 00:00:00 2001 From: Rocky <846106184@qq.com> Date: Thu, 13 Feb 2020 15:49:14 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E7=BA=A0=E6=AD=A3postProcessMergedBeanDefi?= =?UTF-8?q?nition=E6=96=B9=E6=B3=95=E7=9A=84=E6=89=A7=E8=A1=8C=E6=97=B6?= =?UTF-8?q?=E6=9C=BA=E7=9A=84=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 纠正MergedBeanDefinitionPostProcessor.postProcessMergedBeanDefinition方法的执行时机的描述 ```java protected Object doCreateBean(final String beanName, final RootBeanDefinition mbd, final Object[] args) { // Instantiate the bean. BeanWrapper instanceWrapper = null; if (mbd.isSingleton()) { instanceWrapper = this.factoryBeanInstanceCache.remove(beanName); } if (instanceWrapper == null) { //createBeanInstance方法已经创建了实例 instanceWrapper = createBeanInstance(beanName, mbd, args); } final Object bean = (instanceWrapper != null ? instanceWrapper.getWrappedInstance() : null); Class beanType = (instanceWrapper != null ? instanceWrapper.getWrappedClass() : null); // Allow post-processors to modify the merged bean definition. synchronized (mbd.postProcessingLock) { if (!mbd.postProcessed) { applyMergedBeanDefinitionPostProcessors(mbd, beanType, beanName); mbd.postProcessed = true; } } } ``` 代码中createBeanInstance方法已经创建了实例 --- note/spring-context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(简略): From 578992b09e22aadb85c63d822bad679213eda4d3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2020 15:44:33 +0000 Subject: [PATCH 4/6] Bump jackson-databind from 2.9.10.1 to 2.10.0.pr1 Bumps [jackson-databind](https://github.com/FasterXML/jackson) from 2.9.10.1 to 2.10.0.pr1. - [Release notes](https://github.com/FasterXML/jackson/releases) - [Commits](https://github.com/FasterXML/jackson/commits) Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 45a8476..adb42cd 100644 --- a/pom.xml +++ b/pom.xml @@ -90,7 +90,7 @@ com.fasterxml.jackson.core jackson-databind - 2.9.10.1 + 2.10.0.pr1 From 214462c4c583633ca4abf01b7b868dc085425d20 Mon Sep 17 00:00:00 2001 From: YuHui Date: Tue, 23 Feb 2021 17:02:32 +0800 Subject: [PATCH 5/6] Update spring-boot.md --- note/spring-boot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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应用场景下,系统共初始化了这些监听器: From d1ae25dd4dc96efa25d4c0edc7708d32b8776457 Mon Sep 17 00:00:00 2001 From: Carpe-Wang Date: Thu, 23 Mar 2023 16:03:41 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=91=E6=95=B0md?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- note/Spring.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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