对于最新稳定版本,请使用Spring Framework 7.0.1spring-doc.cadn.net.cn

附录

参考文档的这一部分涵盖了适用于多个模块的主题 在核心的 Spring 框架中。spring-doc.cadn.net.cn

泉水属性

春季房产是静态保持器 用于控制Spring框架某些低层次方面的属性。用户可以 通过JVM系统属性或通过程序化配置这些属性SpringProperties.setProperty(String key, String value)方法。后者可能是 如果部署环境不允许自定义 JVM 系统属性,则必须如此。作为 另外,这些属性也可以配置为spring.properties根文件 例如,在应用程序的JAR文件中部署的类路径。spring-doc.cadn.net.cn

下表列出了目前支持的所有春季属性。spring-doc.cadn.net.cn

表1。支持的春季资产
名称 描述

Spring.豆信息。忽略spring-doc.cadn.net.cn

指示Spring使用,Introspector.IGNORE_ALL_BEANINFO调用 JavaBeans内省者.看缓存内省结果细节。spring-doc.cadn.net.cn

spring.expression.compiler.modespring-doc.cadn.net.cn

编译 Spring 表达式时使用的模式。spring-doc.cadn.net.cn

Spring。getenv.忽略spring-doc.cadn.net.cn

指示 Spring 忽略作系统环境变量(如果是 Spring )环境属性——例如配置字符串中的占位符——则不是 否则还能解决。看摘要环境细节。spring-doc.cadn.net.cn

spring.index.ignorespring-doc.cadn.net.cn

指示 Spring 忽略位于META-INF/spring.components.参见生成候选成分指数spring-doc.cadn.net.cn

spring.jdbc.getParameterType.ignorespring-doc.cadn.net.cn

指示Spring无视java.sql.ParameterMetaData.getParameterType完全。 详见“带有对象列表的批处理作”中的说明。spring-doc.cadn.net.cn

Spring.jndi.ignorespring-doc.cadn.net.cn

指示 Spring 忽略默认的 JNDI 环境,作为场景优化 从一开始就无法找到任何JNDI备选搜索,避免了 头顶反复出现的JNDI查询。看JndiLocatorDelegate细节。spring-doc.cadn.net.cn

spring.objenesis.ignorespring-doc.cadn.net.cn

指示Spring无视奥布杰尼西斯,甚至不尝试使用它。看春之生物细节。spring-doc.cadn.net.cn

spring.test.constructor.autowire.modespring-doc.cadn.net.cn

默认测试构造器自动接线模式@TestConstructor不存在 在测试课上。参见“更改默认测试构造器自动接线模式”。spring-doc.cadn.net.cn

spring.test.context.cache.maxSizespring-doc.cadn.net.cn

Spring TestContext 框架中上下文缓存的最大容量。参见上下文缓存spring-doc.cadn.net.cn

spring.test.enclosing.configurationspring-doc.cadn.net.cn

默认的包围配置继承模式@NestedTestConfiguration不存在于测试类中。参见更改默认的封闭配置继承模式spring-doc.cadn.net.cn