本一部分涵盖了核心 Spring 框架核心中的多个模块的主题.
1. Spring 属性
{api-spring-framework}/core/SpringProperties.html[SpringProperties
] 是控制 Spring 框架某些低层面的属性的静态容器。用户可以通过 JVM 系统属性或通过 SpringProperties
以编程方式配置这些属性 例如: SpringProperties.setProperty(String key, String value)
方法。如果部署环境不允许自定义 JVM 系统属性,则可能需要使用后者。作为一种替代方法,这些属性可以在 spring 中配置。属性文件在类路径的根目录中—例如,部署在应用程序的 JAR 文件中.
下表列出了所有当前支持的 Spring 属性。
Name | Description |
---|---|
|
Instructs Spring to use the |
|
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 the components index located in
|
|
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
{api-spring-framework}/jndi/JndiLocatorDelegate.html#IGNORE_JNDI_PROPERTY_NAME[ |
|
Instructs Spring to ignore Objenesis, not even attempting to use it. See
{api-spring-framework}/objenesis/SpringObjenesis.html#IGNORE_OBJENESIS_PROPERTY_NAME[ |
|
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 default enclosing configuration inheritance mode to use if
|