diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..a8a41ec --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +KODIK_TOKEN=YOUR_KODIK_TOKEN +EUREKA_SCHEMA=http +EUREKA_HOST=localhost:8090 diff --git a/pom.xml b/pom.xml index 9f6d01e..91e0aad 100644 --- a/pom.xml +++ b/pom.xml @@ -33,6 +33,7 @@ 3.0.0 4.0.0 2.8.9 + 4.3.0 @@ -60,6 +61,11 @@ springdoc-openapi-starter-webmvc-ui ${springdoc-openapi-starter.version} + + org.springframework.cloud + spring-cloud-starter-netflix-eureka-client + ${spring-eureka-client.version} + org.springframework.boot diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9eabf5e..6b0ad68 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,3 +1,4 @@ spring.application.name=anyame-backend server.error.include-message=always kodik.token=${KODIK_TOKEN} +eureka.client.serviceUrl.defaultZone: ${EUREKA_SCHEMA}://${EUREKA_HOST}/eureka/