Skip to content

Commit 3ddc607

Browse files
committed
Add spring.locking.strict property to common appendix
See gh-34303
1 parent f68fb97 commit 3ddc607

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

framework-docs/modules/ROOT/pages/appendix.adoc

+6
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ the repeated JNDI lookup overhead. See
9292
{spring-framework-api}++/jndi/JndiLocatorDelegate.html#IGNORE_JNDI_PROPERTY_NAME++[`JndiLocatorDelegate`]
9393
for details.
9494

95+
| `spring.locking.strict`
96+
| Instructs Spring to enforce strict locking during bean creation, rather than the mix of
97+
strict and lenient locking that 6.2 applies by default. See
98+
{spring-framework-api}++/beans/factory/support/DefaultListableBeanFactory.html#STRICT_LOCKING_PROPERTY_NAME++[`DefaultListableBeanFactory`]
99+
for details.
100+
95101
| `spring.objenesis.ignore`
96102
| Instructs Spring to ignore Objenesis, not even attempting to use it. See
97103
{spring-framework-api}++/objenesis/SpringObjenesis.html#IGNORE_OBJENESIS_PROPERTY_NAME++[`SpringObjenesis`]

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
130130
implements ConfigurableListableBeanFactory, BeanDefinitionRegistry, Serializable {
131131

132132
/**
133-
* System property that instructs Spring to enforce string locking during bean creation,
133+
* System property that instructs Spring to enforce strict locking during bean creation,
134134
* rather than the mix of strict and lenient locking that 6.2 applies by default. Setting
135135
* this flag to "true" restores 6.1.x style locking in the entire pre-instantiation phase.
136136
* @since 6.2.6

0 commit comments

Comments
 (0)