STEP 9 Connect Limit service to Spring Cloud Config Server
Till now we have Connected the Spring cloud config server to GIT repository also configured with multiple environment as well
But still we have not configured Limit service with spring cloud config server
In this Tutorial we will Connect LimitService to pick up the configuration from the spring cloud config server
As of now all the properties are seted for limit service are present in application.properties
STEP 1: Change application.properties to bootstrap.properties in Limit-service
STEP 2:
instead of using local service add the path of your spring-cloud-config-server
spring.application.name=limits-service
spring.cloud.config.uri=http://localhost:8888
Here is two Properties
1. spring.application.name this should be similar name of yoru spring-cloud-config-server file folder
2. spring.cloud.config.uri this will contain the port information where our spring-cloud-config-server deployed
Now able to achive the property of spring-cloud-config-server into your litmi-service
Comments
Post a Comment