跳到主要内容
版本:3.5.10

已弃用的应用程序属性

QWen Max 中英对照 Deprecated Application Properties

以下已弃用的属性可以在你的 application.properties 文件、application.yaml 文件中指定,或作为命令行开关使用。对这些属性的支持将在未来的版本中移除,你应该尽快迁移 away from them。

提示

Spring Boot 提供了一个实用的 spring-boot-properties-migrator 工具,可帮助你从已弃用的属性迁移。要使用该属性迁移工具,请将以下依赖项添加到你的项目中:

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-properties-migrator</artifactId>
<scope>runtime</scope>
</dependency>

一旦将其作为依赖项添加到你的项目中,该工具不仅会在启动时分析你的应用程序环境并打印诊断信息,还会在运行时临时为你迁移属性。

迁移完成后,请记得移除该依赖项。

已弃用的 Actuator 属性​

名称描述默认值

management.endpoint.auditevents.enabled
由 management.endpoint.auditevents.access 替代true

management.endpoint.beans.enabled
由 management.endpoint.beans.access 取代true

management.endpoint.caches.enabled
由 management.endpoint.caches.access 替代true

management.endpoint.conditions.enabled
由 management.endpoint.conditions.access 替代true

management.endpoint.configprops.enabled
由 management.endpoint.configprops.access 替代true

management.endpoint.env.enabled
由 management.endpoint.env.access 取代true

management.endpoint.flyway.enabled
由 management.endpoint.flyway.access 取代true

management.endpoint.health.enabled
由 management.endpoint.health.access 替代true

management.endpoint.heapdump.enabled
由 management.endpoint.heapdump.access 替代false

management.endpoint.httpexchanges.enabled
由 management.endpoint.httpexchanges.access 取代true

management.endpoint.info.enabled
由 management.endpoint.info.access 取代true

management.endpoint.integrationgraph.enabled
由 management.endpoint.integrationgraph.access 替代true

management.endpoint.liquibase.enabled
由 management.endpoint.liquibase.access 替代true

management.endpoint.logfile.enabled
由 management.endpoint.logfile.access 替代true

management.endpoint.loggers.enabled
由 management.endpoint.loggers.access 替代true

management.endpoint.mappings.enabled
由 management.endpoint.mappings.access 取代true

management.endpoint.metrics.enabled
由 management.endpoint.metrics.access 替代true

management.endpoint.prometheus.enabled
由 management.endpoint.prometheus.access 替代true

management.endpoint.quartz.enabled
由 management.endpoint.quartz.access 替代true

management.endpoint.sbom.enabled
由 management.endpoint.sbom.access 取代true

management.endpoint.scheduledtasks.enabled
由 management.endpoint.scheduledtasks.access 替代true

management.endpoint.sessions.enabled
由 management.endpoint.sessions.access 替代true

management.endpoint.shutdown.enabled
由 management.endpoint.shutdown.access 替代false

management.endpoint.startup.enabled
由 management.endpoint.startup.access 取代true

management.endpoint.threaddump.enabled
由 management.endpoint.threaddump.access 取代true

management.endpoints.enabled-by-default
由 management.endpoints.access.default 替代

management.health.probes.enabled
由 management.endpoint.health.probes.enabled 替代false

management.signalfx.metrics.export.access-token
在 Micrometer 1.15.0 中已弃用

management.signalfx.metrics.export.batch-size
在 Micrometer 1.15.0 中已弃用10000

management.signalfx.metrics.export.connect-timeout
在 Micrometer 1.15.0 中已弃用1s

management.signalfx.metrics.export.enabled
在 Micrometer 1.15.0 中已弃用true

management.signalfx.metrics.export.published-histogram-type
在 Micrometer 1.15.0 中已弃用default

management.signalfx.metrics.export.read-timeout
在 Micrometer 1.15.0 中已弃用10s

management.signalfx.metrics.export.source
在 Micrometer 1.15.0 中已弃用

management.signalfx.metrics.export.step
在 Micrometer 1.15.0 中已弃用10s

management.signalfx.metrics.export.uri
在 Micrometer 1.15.0 中已弃用https://ingest.signalfx.com

已弃用的核心属性​

已弃用的数据迁移属性​

已弃用的数据属性​

已弃用的集成属性​

已弃用的 JSON 属性​

名称描述默认值

spring.gson.lenient
已被 spring.gson.strictness 取代

已弃用的 Server 属性​

已弃用的模板属性​

名称描述默认值

spring.groovy.template.configuration.auto-escape
由 spring.groovy.template.auto-escape 替代

spring.groovy.template.configuration.auto-indent
由 spring.groovy.template.auto-indent 取代

spring.groovy.template.configuration.auto-indent-string
由 spring.groovy.template.auto-indent-string 取代

spring.groovy.template.configuration.auto-new-line
由 spring.groovy.template.auto-new-line 替代

spring.groovy.template.configuration.base-template-class
由 spring.groovy.template.base-template-class 替代

spring.groovy.template.configuration.cache-templates
由 spring.groovy.template.cache 替代

spring.groovy.template.configuration.declaration-encoding
由 spring.groovy.template.declaration-encoding 取代

spring.groovy.template.configuration.expand-empty-elements
由 spring.groovy.template.expand-empty-elements 取代

spring.groovy.template.configuration.locale
由 spring.groovy.template.locale 替代

spring.groovy.template.configuration.new-line-string
由 spring.groovy.template.new-line-string 替代

spring.groovy.template.configuration.resource-loader-path
由 spring.groovy.template.resource-loader-path 取代

spring.groovy.template.configuration.use-double-quotes
由 spring.groovy.template.use-double-quotes 取代

已弃用的 Web 属性​