mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '3.1.x'
Closes gh-37072
This commit is contained in:
commit
c55e8b9b9a
@ -102,7 +102,7 @@
|
||||
:dynatrace-help: https://www.dynatrace.com/support/help
|
||||
:gradle-docs: https://docs.gradle.org/current/userguide
|
||||
:hibernate-docs: https://docs.jboss.org/hibernate/orm/{hibernate-version}/userguide/html_single/Hibernate_User_Guide.html
|
||||
:java-api: https://docs.oracle.com/javase/17/docs/api
|
||||
:java-api: https://docs.oracle.com/en/java/javase/17/docs/api
|
||||
:jooq-docs: https://www.jooq.org/doc/{jooq-version}/manual-single-page
|
||||
:junit5-docs: https://junit.org/junit5/docs/current/user-guide
|
||||
:kotlin-docs: https://kotlinlang.org/docs/reference/
|
||||
|
@ -1049,7 +1049,7 @@ Spring Boot has dedicated support for expressing durations.
|
||||
If you expose a `java.time.Duration` property, the following formats in application properties are available:
|
||||
|
||||
* A regular `long` representation (using milliseconds as the default unit unless a `@DurationUnit` has been specified)
|
||||
* The standard ISO-8601 format {java-api}/java/time/Duration.html#parse-java.lang.CharSequence-[used by `java.time.Duration`]
|
||||
* The standard ISO-8601 format {java-api}/java.base/java/time/Duration.html#parse(java.lang.CharSequence)[used by `java.time.Duration`]
|
||||
* A more readable format where the value and the unit are coupled (`10s` means 10 seconds)
|
||||
|
||||
Consider the following example:
|
||||
@ -1088,7 +1088,7 @@ In addition to durations, Spring Boot can also work with `java.time.Period` type
|
||||
The following formats can be used in application properties:
|
||||
|
||||
* An regular `int` representation (using days as the default unit unless a `@PeriodUnit` has been specified)
|
||||
* The standard ISO-8601 format {java-api}/java/time/Period.html#parse-java.lang.CharSequence-[used by `java.time.Period`]
|
||||
* The standard ISO-8601 format {java-api}/java.base/java/time/Period.html#parse(java.lang.CharSequence)[used by `java.time.Period`]
|
||||
* A simpler format where the value and the unit pairs are coupled (`1y3d` means 1 year and 3 days)
|
||||
|
||||
The following units are supported with the simple format:
|
||||
|
@ -1,7 +1,7 @@
|
||||
[[features.logging]]
|
||||
== Logging
|
||||
Spring Boot uses https://commons.apache.org/logging[Commons Logging] for all internal logging but leaves the underlying log implementation open.
|
||||
Default configurations are provided for {java-api}/java/util/logging/package-summary.html[Java Util Logging], https://logging.apache.org/log4j/2.x/[Log4j2], and https://logback.qos.ch/[Logback].
|
||||
Default configurations are provided for {java-api}/java.logging/java/util/logging/package-summary.html[Java Util Logging], https://logging.apache.org/log4j/2.x/[Log4j2], and https://logback.qos.ch/[Logback].
|
||||
In each case, loggers are pre-configured to use console output with optional file output also available.
|
||||
|
||||
By default, if you use the "`Starters`", Logback is used for logging.
|
||||
|
Loading…
Reference in New Issue
Block a user