Common Application Properties

可以在 application.properties 文件、application.yaml 文件或作为命令行开关中指定各种属性。此附录提供常见 Spring Boot 属性以及对使用它们的底层类的引用的列表。

Various properties can be specified inside your application.properties file, inside your application.yaml file, or as command line switches. This appendix provides a list of common Spring Boot properties and references to the underlying classes that consume them.

Spring Boot 提供了具有高级值格式化的各种转换机制,请务必回顾 the properties conversion section

Spring Boot provides various conversion mechanism with advanced value formatting, make sure to review the properties conversion section.

属性贡献可以来自类路径上的其他 jar 文件,因此你不应该将此视为一份详尽的清单。此外,你可以定义自己的属性。

Property contributions can come from additional jar files on your classpath, so you should not consider this an exhaustive list. Also, you can define your own properties.

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/core.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/cache.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/mail.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/json.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/data.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/transaction.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/data-migration.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/integration.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/web.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/templating.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/server.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/security.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/rsocket.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/actuator.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/devtools.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/docker-compose.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/testcontainers.adoc[]

Unresolved include directive in modules/appendix/pages/application-properties/index.adoc - include::partial$configuration-properties/testing.adoc[]