From c0f9c2f5e8c52995516ce9655c0ad0a05464c8d5 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Mon, 20 Jan 2025 10:45:32 +0800 Subject: [PATCH] Add missing additional configuration metadata and fix type of defaultValue And move `spring.cloud.refresh.enabled` to `spring-cloud-context`. Signed-off-by: Yanming Zhou --- ...ditional-spring-configuration-metadata.json | 8 +------- ...ditional-spring-configuration-metadata.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/spring-cloud-commons/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/spring-cloud-commons/src/main/resources/META-INF/additional-spring-configuration-metadata.json index c30efdd08..2add34420 100644 --- a/spring-cloud-commons/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/spring-cloud-commons/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -1,11 +1,5 @@ { "properties": [ - { - "defaultValue": "true", - "name": "spring.cloud.refresh.enabled", - "description": "Enables autoconfiguration for the refresh scope and associated features.", - "type": "java.lang.Boolean" - }, { "defaultValue": true, "name": "spring.cloud.httpclientfactories.apache.enabled", @@ -13,7 +7,7 @@ "type": "java.lang.Boolean" }, { - "defaultValue": "true", + "defaultValue": true, "name": "spring.cloud.httpclientfactories.ok.enabled", "description": "Enables creation of OK Http Client factory beans.", "type": "java.lang.Boolean" diff --git a/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json index 448ce8fea..94370f3fa 100644 --- a/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/spring-cloud-context/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -36,6 +36,24 @@ "description": "Enable the /resume endpoint (to send Lifecycle.start()).", "defaultValue": true }, + { + "defaultValue": true, + "name": "spring.cloud.refresh.enabled", + "description": "Enables autoconfiguration for the refresh scope and associated features.", + "type": "java.lang.Boolean" + }, + { + "defaultValue": true, + "name": "spring.cloud.refresh.on-restart.enabled", + "description": "Triggers scope refreshing on application context restart.", + "type": "java.lang.Boolean" + }, + { + "name": "spring.cloud.refresh.refreshable", + "type": "java.util.Set", + "description": "Class names for beans to post process into refresh scope.", + "defaultValue": true + }, { "name": "spring.cloud.refresh.extra-refreshable", "type": "java.util.Set",