Commit 832db809 authored by Nikhil Singh[MicroSoft]'s avatar Nikhil Singh[MicroSoft]
Browse files

config improvement

parent 1fc856cd
Pipeline #66480 failed with stages
in 36 minutes and 10 seconds
...@@ -25,12 +25,11 @@ import org.springframework.context.annotation.Configuration; ...@@ -25,12 +25,11 @@ import org.springframework.context.annotation.Configuration;
@Configuration @Configuration
@Getter @Getter
@Setter @Setter
@ConfigurationProperties("azure.eventgrid")
public class EventGridConfig { public class EventGridConfig {
@Value("#{new Boolean('${enabled:false}')}") @Value("#{new Boolean('${azure.eventGrid.enabled:false}')}")
private boolean eventGridEnabled; private boolean eventGridEnabled;
@Value("#{new String('${topicName:schemachangedtopic}')}") @Value("#{new String('${azure.eventGrid.topicName:schemachangedtopic}')}")
private String eventGridCustomTopic; private String eventGridCustomTopic;
} }
...@@ -24,11 +24,10 @@ import org.springframework.context.annotation.Configuration; ...@@ -24,11 +24,10 @@ import org.springframework.context.annotation.Configuration;
@Configuration @Configuration
@Getter @Getter
@Setter @Setter
@ConfigurationProperties("azure.servicebus")
public class ServiceBusConfig { public class ServiceBusConfig {
@Value("#{new Boolean('${enabled:false}')}") @Value("#{new Boolean('${azure.serviceBus.enabled:false}')}")
private boolean serviceBusEnabled; private boolean serviceBusEnabled;
@Value("#{new String('${topicName:schemachangedtopic}')}") @Value("#{new String('${azure.serviceBus.topicName:schemachangedtopic}')}")
private String serviceBusCustomTopic; private String serviceBusCustomTopic;
} }
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