Spring boot config server which provides configuration file
to it's client based on profiles from configured config-repository...
add set -Dhttps.proxyHost= -Dhttps.proxyPort= as VM Argument if it is required ?
when you have used cloud url like
uri: https://github.com/singhmahabir/config-repository
- mvn spring-boot:run
- Runs on port 8701
** config server urls **
- https://cloud.spring.io/spring-cloud-config/multi/multi__spring_cloud_config_server.html
- https://cloud.spring.io/spring-cloud-config/multi/multi__quick_start.html
{ServiceID}-{profile}.properties
-
ServiceID defined as below
- spring.application.name = anyname
-
profile
- anyname-dev.properties
- anyname-test.properties
- Here dev and test are profiles
-
Example
spring:
cloud:
config:
server:
encrypt:
enabled: false
encrypt:
key: ABCDEFGHIJKLMNOPQRSTUVWXYZ