Spring Framwork Appendix v5.3.36 SNAPSHOT
75.61 KB
5 页
0 评论
语言 | 格式 | 评分 |
---|---|---|
英语 | .pdf | 3 |
摘要 | ||
The document discusses Spring Properties, a mechanism to configure low-level aspects of the Spring Framework. SpringProperties provides a static holder for properties that can be set via JVM system properties, programmatically, or through a spring.properties file. Various properties are listed, including spring.beaninfo.ignore, spring.expression.compiler.mode, spring.getenv.ignore, spring.index.ignore, spring.jdbc.getParameterType.ignore, spring.jndi.ignore, spring.objenesis.ignore, and spring.test.constructor.autowire.mode. These properties control aspects such as introspection, expression compilation, environment variable handling, component indexing, JDBC operations, JNDI lookups, Objenesis usage, and test constructor autowiring modes. | ||
AI总结 | ||
以下是对《Spring Framework Appendix v5.3.36 SNAPSHOT》文档内容的总结:
本文档主要介绍了Spring Framework中与多个模块相关的核心主题,重点围绕Spring Properties展开。
### 1. Spring Properties概述
Spring Properties是一个静态容器,用于配置控制Spring Framework某些底层方面的属性。用户可以通过以下方式配置这些属性:
- 通过JVM系统属性
- 通过SpringProperties.setProperty(String key, String value)方法进行程序化配置
- 在classpath根目录下的spring.properties文件中进行配置。
### 2. 支持的Spring Properties
以下是Spring支持的主要属性及其功能描述:
| 属性名称 | 描述 |
|--------------------------------|----------------------------------------------------------------------------------------|
| spring.beaninfo.ignore | 指示Spring在调用JavaBeans Introspector时使用Introspector.IGNORE_ALL_BEANINFO模式。 |
| spring.expression.compiler.mode | 配置Spring Expression Language表达式的编译模式。 |
| spring.getenv.ignore | 指示Spring在无法通过Spring Environment属性解析占位符时忽略操作系统环境变量。 |
| spring.index.ignore | 指示Spring忽略META-INF/spring.components中的组件索引。 |
| spring.jdbc.getParameterType.ignore | 指示Spring完全忽略java.sql.ParameterMetaData.getParameterType。 |
| spring.jndi.ignore | 指示Spring忽略默认JNDI环境,以优化性能,避免不必要的JNDI查找开销。 |
| spring.objenesis.ignore | 指示Spring完全忽略Objenesis,即使不尝试使用它。 |
| spring.test.constructor.autowire.mode | 配置测试类构造函数自动注入的默认模式。 |
这些属性提供了对Spring Framework底层行为的精细化控制,用户可根据需求进行配置。 |
P1
P2
P3
P4
P5
下载文档到本地,方便使用
文档评分