in client:
- add dependency on
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-config', version: '3.0.4'
- add properties
spring.config.import=optional:configserver:http://localhost:8888
- use -Dspring.profiles.active=dev to switch between profiles.
In config repository put properties file named by application name: jis6.properties of jis6.yml. That will be default profile.
http://localhost:8888/test-config.properties http://localhost:8888/jis6/master
build image
docker build -t tutrit/config_server .run image
docker run -p 8888:8888 tutrit/config_server