Closed zaro0508 closed 6 days ago
spring:
config:
import: 'configserver:http://openchallenges-config-server:8090'
spring:
config:
import: 'configserver:'
cloud:
config:
uri: http://openchallenges-config-server:8090
The value of spring.cloud.config.uri
can be overridden with the environment variable SPRING_CLOUD_CONFIG_URI
spring.config.import
unlike other config properties. This behavior was tested and confirmed. The solution is to rely on the property spring.cloud.config.uri
, which can be overridden with an environment variable (see above)..env
).Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
spring boot issue 3346 says it's not possible to override Spring Import with SPRING_CONFIG_IMPORT env var. The suggestion is to use confighost instead which can be overriden with a CONFIGHOST env var.