Skip to content

Commit ddc3cf3

Browse files
committed
Merge branch '6.0.x'
# Conflicts: # spring-context/src/main/java/org/springframework/scheduling/concurrent/ExecutorConfigurationSupport.java
2 parents b12115b + 35c7e39 commit ddc3cf3

File tree

5 files changed

+176
-327
lines changed

5 files changed

+176
-327
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ public void preInstantiateSingletons() throws BeansException {
979979
for (String beanName : beanNames) {
980980
Object singletonInstance = getSingleton(beanName);
981981
if (singletonInstance instanceof SmartInitializingSingleton smartSingleton) {
982-
StartupStep smartInitialize = this.getApplicationStartup().start("spring.beans.smart-initialize")
982+
StartupStep smartInitialize = getApplicationStartup().start("spring.beans.smart-initialize")
983983
.tag("beanName", beanName);
984984
smartSingleton.afterSingletonsInstantiated();
985985
smartInitialize.end();

spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ public DefaultLifecycleProcessor() {
112112

113113

114114
/**
115-
* Specify the maximum time allotted in milliseconds for the shutdown of
116-
* any phase (group of SmartLifecycle beans with the same 'phase' value).
117-
* <p>The default value is 30 seconds.
115+
* Specify the maximum time allotted in milliseconds for the shutdown of any
116+
* phase (group of {@link SmartLifecycle} beans with the same 'phase' value).
117+
* <p>The default value is 30000 milliseconds (30 seconds).
118+
* @see SmartLifecycle#getPhase()
118119
*/
119120
public void setTimeoutPerShutdownPhase(long timeoutPerShutdownPhase) {
120121
this.timeoutPerShutdownPhase = timeoutPerShutdownPhase;

0 commit comments

Comments
 (0)