Commit 3af9b445 authored by Ashok Kumar K's avatar Ashok Kumar K

added discovery client dependency

parent 9a712aa1
...@@ -18,6 +18,11 @@ ext { ...@@ -18,6 +18,11 @@ ext {
dependencies { dependencies {
implementation 'org.springframework.cloud:spring-cloud-config-server' implementation 'org.springframework.cloud:spring-cloud-config-server'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin'
testImplementation('org.springframework.boot:spring-boot-starter-test') { testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
} }
......
...@@ -3,13 +3,15 @@ package com.nisum.configserver; ...@@ -3,13 +3,15 @@ package com.nisum.configserver;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer; import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@EnableConfigServer @EnableConfigServer
@EnableEurekaClient
@SpringBootApplication @SpringBootApplication
public class ConfigServerApplication { public class ConfigServerApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(ConfigServerApplication.class, args); SpringApplication.run(ConfigServerApplication.class, args);
} }
} }
...@@ -2,7 +2,7 @@ server: ...@@ -2,7 +2,7 @@ server:
port: 8888 port: 8888
spring: spring:
config: application:
name: config-server name: config-server
cloud: cloud:
config: config:
...@@ -10,3 +10,7 @@ spring: ...@@ -10,3 +10,7 @@ spring:
git: git:
uri: https://gitlab.mynisum.com/ashokk/external-app-config.git uri: https://gitlab.mynisum.com/ashokk/external-app-config.git
skip-ssl-validation: true skip-ssl-validation: true
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
\ 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