Commit 04c50a72 authored by calocedre TAC's avatar calocedre TAC
Browse files

revert use of refresh scope for configurations

parent 9c615d32
package fr.gouv.clea.consumer.configuration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
@RefreshScope
@ConditionalOnProperty(value = "clea.conf.scheduling.purge.enabled", havingValue = "true")
@Configuration
@EnableScheduling
......
......@@ -6,7 +6,6 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;
......@@ -20,7 +19,6 @@ import javax.validation.constraints.Positive;
@AllArgsConstructor
@Builder(toBuilder = true)
@Validated
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "clea.conf")
@Slf4j
......
......@@ -5,7 +5,6 @@ import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;
......@@ -20,7 +19,6 @@ import javax.validation.constraints.Positive;
@Data
@NoArgsConstructor
@Validated
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "clea.conf")
@Slf4j
......
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