mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '2.7.x'
Closes gh-33726
This commit is contained in:
commit
f11de0c4cf
@ -335,7 +335,7 @@ include::code:MyApplication[]
|
||||
Also, the `ExitCodeGenerator` interface may be implemented by exceptions.
|
||||
When such an exception is encountered, Spring Boot returns the exit code provided by the implemented `getExitCode()` method.
|
||||
|
||||
If there is more than `ExitCodeGenerator`, the first non-zero exit code that is generated is used.
|
||||
If there is more than one `ExitCodeGenerator`, the first non-zero exit code that is generated is used.
|
||||
To control the order in which the generators are called, additionally implement the `org.springframework.core.Ordered` interface or use the `org.springframework.core.annotation.Order` annotation.
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user