Commit 22f44917 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Add metadata entry for spring.main.register-shutdown-hook"

See gh-18581
parent 9b781449
...@@ -120,9 +120,9 @@ Rather, pick only the properties that you need. ...@@ -120,9 +120,9 @@ Rather, pick only the properties that you need.
# APPLICATION SETTINGS ({spring-boot-module-code}/SpringApplication.java[SpringApplication]) # APPLICATION SETTINGS ({spring-boot-module-code}/SpringApplication.java[SpringApplication])
spring.main.allow-bean-definition-overriding=false # Whether bean definition overriding, by registering a definition with the same name as an existing definition, is allowed. spring.main.allow-bean-definition-overriding=false # Whether bean definition overriding, by registering a definition with the same name as an existing definition, is allowed.
spring.main.banner-mode=console # Mode used to display the banner when the application runs. spring.main.banner-mode=console # Mode used to display the banner when the application runs.
spring.main.register-shutdown-hook=true # Whether the application should have a shutdown hook registered.
spring.main.sources= # Sources (class names, package names, or XML resource locations) to include in the ApplicationContext. spring.main.sources= # Sources (class names, package names, or XML resource locations) to include in the ApplicationContext.
spring.main.web-application-type= # Flag to explicitly request a specific type of web application. If not set, auto-detected based on the classpath. spring.main.web-application-type= # Flag to explicitly request a specific type of web application. If not set, auto-detected based on the classpath.
spring.main.register-shutdown-hook=true # Whether shutdown hooks are automatically registered when Spring Boot start. If not set, they are automatically registered.
# FILE ENCODING ({spring-boot-module-code}/context/FileEncodingApplicationListener.java[FileEncodingApplicationListener]) # FILE ENCODING ({spring-boot-module-code}/context/FileEncodingApplicationListener.java[FileEncodingApplicationListener])
spring.mandatory-file-encoding= # Expected character encoding the application must use. spring.mandatory-file-encoding= # Expected character encoding the application must use.
......
...@@ -607,6 +607,13 @@ ...@@ -607,6 +607,13 @@
"description": "Mode used to display the banner when the application runs.", "description": "Mode used to display the banner when the application runs.",
"defaultValue": "console" "defaultValue": "console"
}, },
{
"name": "spring.main.register-shutdown-hook",
"type": "java.lang.Boolean",
"sourceType": "org.springframework.boot.SpringApplication",
"description": "Whether the application should have a shutdown hook registered.",
"defaultValue": true
},
{ {
"name": "spring.main.show-banner", "name": "spring.main.show-banner",
"type": "java.lang.Boolean", "type": "java.lang.Boolean",
...@@ -629,13 +636,6 @@ ...@@ -629,13 +636,6 @@
"sourceType": "org.springframework.boot.SpringApplication", "sourceType": "org.springframework.boot.SpringApplication",
"description": "Flag to explicitly request a specific type of web application. If not set, auto-detected based on the classpath." "description": "Flag to explicitly request a specific type of web application. If not set, auto-detected based on the classpath."
}, },
{
"name": "spring.main.register-shutdown-hook",
"type": "java.lang.Boolean",
"sourceType": "org.springframework.boot.SpringApplication",
"description": "Whether shutdown hooks are automatically registered when Spring Boot start. If not set, they are automatically registered.",
"defaultValue": true
},
{ {
"name": "spring.main.web-environment", "name": "spring.main.web-environment",
"type": "java.lang.Boolean", "type": "java.lang.Boolean",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment