backend-sample-config-client/README.md

21 lines
478 B
Markdown
Raw Permalink Normal View History

2020-06-24 10:02:32 +07:00
### Sample Config Client
2020-06-24 10:02:55 +07:00
#### Add libras for client config
2020-06-24 10:02:32 +07:00
```groovy
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-starter-config'
```
2020-06-24 10:02:55 +07:00
#### Add config bootstrap
2020-06-24 10:02:32 +07:00
```yml
spring:
application:
name: config-client-sample
cloud:
config:
uri: ${CONFIG_URL:https://config-apren.cubetiqs.com}
profile: config-client-sample
2020-06-24 10:30:39 +07:00
username: myUsername
password: myPassword
```