Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TousAntiCovid sources
Cléa Server
Commits
04c50a72
Commit
04c50a72
authored
Apr 22, 2021
by
calocedre TAC
Browse files
revert use of refresh scope for configurations
parent
9c615d32
Changes
3
Hide whitespace changes
Inline
Side-by-side
clea-venue-consumer/src/main/java/fr/gouv/clea/consumer/configuration/SchedulingConfiguration.java
View file @
04c50a72
package
fr.gouv.clea.consumer.configuration
;
package
fr.gouv.clea.consumer.configuration
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.cloud.context.config.annotation.RefreshScope
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
@RefreshScope
@ConditionalOnProperty
(
value
=
"clea.conf.scheduling.purge.enabled"
,
havingValue
=
"true"
)
@ConditionalOnProperty
(
value
=
"clea.conf.scheduling.purge.enabled"
,
havingValue
=
"true"
)
@Configuration
@Configuration
@EnableScheduling
@EnableScheduling
...
...
clea-venue-consumer/src/main/java/fr/gouv/clea/consumer/configuration/VenueConsumerConfiguration.java
View file @
04c50a72
...
@@ -6,7 +6,6 @@ import lombok.Data;
...
@@ -6,7 +6,6 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.cloud.context.config.annotation.RefreshScope
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
...
@@ -20,7 +19,6 @@ import javax.validation.constraints.Positive;
...
@@ -20,7 +19,6 @@ import javax.validation.constraints.Positive;
@AllArgsConstructor
@AllArgsConstructor
@Builder
(
toBuilder
=
true
)
@Builder
(
toBuilder
=
true
)
@Validated
@Validated
@RefreshScope
@Configuration
@Configuration
@ConfigurationProperties
(
prefix
=
"clea.conf"
)
@ConfigurationProperties
(
prefix
=
"clea.conf"
)
@Slf4j
@Slf4j
...
...
clea-ws-rest/src/main/java/fr/gouv/clea/ws/configuration/CleaWsProperties.java
View file @
04c50a72
...
@@ -5,7 +5,6 @@ import lombok.NoArgsConstructor;
...
@@ -5,7 +5,6 @@ import lombok.NoArgsConstructor;
import
lombok.ToString
;
import
lombok.ToString
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.cloud.context.config.annotation.RefreshScope
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
...
@@ -20,7 +19,6 @@ import javax.validation.constraints.Positive;
...
@@ -20,7 +19,6 @@ import javax.validation.constraints.Positive;
@Data
@Data
@NoArgsConstructor
@NoArgsConstructor
@Validated
@Validated
@RefreshScope
@Configuration
@Configuration
@ConfigurationProperties
(
prefix
=
"clea.conf"
)
@ConfigurationProperties
(
prefix
=
"clea.conf"
)
@Slf4j
@Slf4j
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment