Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OTSWithFeign
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siva Naga Someswara Jatla
OTSWithFeign
Commits
c2933206
Commit
c2933206
authored
May 06, 2020
by
sgandhi@nisum.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EPE-006 : Added config server configurations to make it a config client.
parent
cf4b3f23
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
20 deletions
+5
-20
build.gradle
build.gradle
+1
-0
EndOfTransactionService.java
...ertransactionservice/service/EndOfTransactionService.java
+0
-1
OfferCallingPEService.java
...ffertransactionservice/service/OfferCallingPEService.java
+0
-1
application.properties
src/main/resources/application.properties
+0
-18
bootstrap.properties
src/main/resources/bootstrap.properties
+4
-0
No files found.
build.gradle
View file @
c2933206
...
...
@@ -32,6 +32,7 @@ ext {
dependencies
{
//TODO: Make it
implementation
'org.springframework.cloud:spring-cloud-starter-config'
compile
group:
'org.json'
,
name:
'json'
,
version:
'20190722'
compile
'org.mapstruct:mapstruct:1.3.1.Final'
implementation
'org.springframework.cloud:spring-cloud-starter-openfeign'
...
...
src/main/java/com/nisum/offertransactionservice/service/EndOfTransactionService.java
View file @
c2933206
...
...
@@ -16,7 +16,6 @@ import java.util.Objects;
@Service
@PropertySource
(
"classpath:application.properties"
)
@Slf4j
public
class
EndOfTransactionService
{
...
...
src/main/java/com/nisum/offertransactionservice/service/OfferCallingPEService.java
View file @
c2933206
...
...
@@ -21,7 +21,6 @@ import java.util.*;
import
java.util.stream.Collectors
;
@Service
@PropertySource
(
"classpath:application.properties"
)
@Slf4j
public
class
OfferCallingPEService
{
...
...
src/main/resources/application.properties
View file @
c2933206
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
src/main/resources/bootstrap.properties
0 → 100644
View file @
c2933206
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment