跳到主要内容
版本: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 属性