Merge branch '2.7.x'

This commit is contained in:
Andy Wilkinson
2022-04-07 16:31:58 +01:00
4 changed files with 46 additions and 21 deletions

View File

@@ -352,6 +352,9 @@ 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.
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.
[[features.spring-application.admin]]