Commit c2933206 authored by sgandhi@nisum.com's avatar sgandhi@nisum.com

EPE-006 : Added config server configurations to make it a config client.

parent cf4b3f23
...@@ -32,6 +32,7 @@ ext { ...@@ -32,6 +32,7 @@ ext {
dependencies { dependencies {
//TODO: Make it //TODO: Make it
implementation 'org.springframework.cloud:spring-cloud-starter-config'
compile group: 'org.json', name: 'json', version: '20190722' compile group: 'org.json', name: 'json', version: '20190722'
compile 'org.mapstruct:mapstruct:1.3.1.Final' compile 'org.mapstruct:mapstruct:1.3.1.Final'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign' implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
......
...@@ -16,7 +16,6 @@ import java.util.Objects; ...@@ -16,7 +16,6 @@ import java.util.Objects;
@Service @Service
@PropertySource("classpath:application.properties")
@Slf4j @Slf4j
public class EndOfTransactionService { public class EndOfTransactionService {
......
...@@ -21,7 +21,6 @@ import java.util.*; ...@@ -21,7 +21,6 @@ import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Service @Service
@PropertySource("classpath:application.properties")
@Slf4j @Slf4j
public class OfferCallingPEService { public class OfferCallingPEService {
......
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/storedb
spring.datasource.username=postgres
spring.datasource.password=dbpwd
endpoint.url.promotionEngineUrl=/promotionEngine/calculateDiscount
pe.application.name=pe
storeproducer.application.name=storeproducer
endpoint.url.storeProducerUrl=/store/producer
endpoint.url.spBaseUrl=http://localhost:7070
server.port = 7072
spring.application.name=ots
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka
//TODO: add refresh eureka endpoint properties
endpoints.restart.enabled=true
endpoints.shutdown.enabled=true
endpoints.health.sensitive=false
maxattempts=3
backoff=2000
\ No newline at end of file
spring.application.name=ots
spring.cloud.config.uri=http://localhost:8888
spring.cloud.config.username=root
spring.cloud.config.password=password
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment