From 9f067a6907e0d9a287e89d5774f77d1cc344e6e7 Mon Sep 17 00:00:00 2001 From: making Date: Wed, 23 Nov 2016 03:57:40 +0900 Subject: [PATCH] Add spring-boot-configuration-processor to SCSt schema/server Add spring.cloud.stream.schemaRegistryClient.enabled --- spring-cloud-stream-schema-server/pom.xml | 5 +++++ spring-cloud-stream-schema/pom.xml | 5 +++++ .../client/config/SchemaRegistryClientProperties.java | 10 ++++++++++ 3 files changed, 20 insertions(+) diff --git a/spring-cloud-stream-schema-server/pom.xml b/spring-cloud-stream-schema-server/pom.xml index 7af3d2f90..6dc1f35b3 100644 --- a/spring-cloud-stream-schema-server/pom.xml +++ b/spring-cloud-stream-schema-server/pom.xml @@ -33,6 +33,11 @@ avro 1.8.1 + + org.springframework.boot + spring-boot-configuration-processor + true + org.springframework.cloud spring-cloud-stream-test-support diff --git a/spring-cloud-stream-schema/pom.xml b/spring-cloud-stream-schema/pom.xml index 0fe115960..70bbf6999 100644 --- a/spring-cloud-stream-schema/pom.xml +++ b/spring-cloud-stream-schema/pom.xml @@ -15,6 +15,11 @@ org.springframework.cloud spring-cloud-stream + + org.springframework.boot + spring-boot-configuration-processor + true + org.springframework.boot spring-boot-starter-test diff --git a/spring-cloud-stream-schema/src/main/java/org/springframework/cloud/stream/schema/client/config/SchemaRegistryClientProperties.java b/spring-cloud-stream-schema/src/main/java/org/springframework/cloud/stream/schema/client/config/SchemaRegistryClientProperties.java index b1aae14fd..94416ce0d 100644 --- a/spring-cloud-stream-schema/src/main/java/org/springframework/cloud/stream/schema/client/config/SchemaRegistryClientProperties.java +++ b/spring-cloud-stream-schema/src/main/java/org/springframework/cloud/stream/schema/client/config/SchemaRegistryClientProperties.java @@ -26,6 +26,8 @@ public class SchemaRegistryClientProperties { private String endpoint; + private boolean enabled = true; + public String getEndpoint() { return this.endpoint; } @@ -33,4 +35,12 @@ public class SchemaRegistryClientProperties { public void setEndpoint(String endpoint) { this.endpoint = endpoint; } + + public boolean isEnabled() { + return enabled; + } + + public void setEnabled(boolean enabled) { + this.enabled = enabled; + } }