Appendix
本部分参考文档涵盖了适用于核心 Spring 框架中多个模块的主题。
This part of the reference documentation covers topics that apply to multiple modules within the core Spring Framework.
Spring Properties
SpringProperties
是一个用于控制 Spring Framework 某些底层方面的属性的静态持有器。可以通过 JVM 系统属性或通过 `SpringProperties.setProperty(String key, String value)`方法以编程方式,让用户配置这些属性。如果部署环境不允许自定义 JVM 系统属性,后者可能是必需的。或者,这些属性可以配置在类路径根目录的 `spring.properties`文件中,例如部署在应用程序的 JAR 文件中。
SpringProperties
is a static holder
for properties that control certain low-level aspects of the Spring Framework. Users can
configure these properties via JVM system properties or programmatically via the
SpringProperties.setProperty(String key, String value)
method. The latter may be
necessary if the deployment environment disallows custom JVM system properties. As an
alternative, these properties may be configured in a spring.properties
file in the root
of the classpath — for example, deployed within the application’s JAR file.
下表列出所有当前受支持的 Spring 属性。
The following table lists all currently supported Spring properties.
Name | Description |
---|---|
|
Indicates the application should run with AOT generated artifacts. See
Ahead of Time Optimizations and
|
|
Instructs Spring to use the |
|
Instructs Spring’s caching infrastructure to ignore the presence of Reactive Streams,
in particular Reactor’s |
|
Instructs Spring to ignore class format exceptions during classpath scanning, in
particular for unsupported class file versions. See
|
|
Property that specifies a common context checkpoint. See
Automatic
checkpoint/restore at startup and
|
|
Property for terminating the JVM when the context reaches a specific phase. See
Automatic
checkpoint/restore at startup and
|
|
The maximum length for
Spring Expression Language
expressions used in XML bean definitions, |
|
The mode to use when compiling expressions for the Spring Expression Language. |
|
Instructs Spring to ignore operating system environment variables if a Spring
|
|
Instructs Spring to ignore |
|
Instructs Spring to ignore a default JNDI environment, as an optimization for scenarios
where nothing is ever to be found for such JNDI fallback searches to begin with, avoiding
the repeated JNDI lookup overhead. See
|
|
Instructs Spring to ignore Objenesis, not even attempting to use it. See
|
|
A boolean flag that controls whether errors encountered during AOT processing in the Spring TestContext Framework should result in an exception that fails the overall process. See Ahead of Time Support for Tests. |
|
The default test constructor autowire mode to use if |
|
The maximum size of the context cache in the Spring TestContext Framework. See Context Caching. |
|
The failure threshold for errors encountered while attempting to load an |
|
The default enclosing configuration inheritance mode to use if
|