From 4b955c41e50cd3be056ca110ce383b4fec14a95a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=A7=80=EC=9B=90?= Date: Sun, 29 Sep 2024 15:03:20 +0900 Subject: [PATCH] chore : change server port --- .../app-api/src/main/resources/application.yml | 1 - .../infra/elasticsearch/config/ElasticSearchConfig.java | 6 +++--- tracedin-infra/src/main/resources/application-infra.yml | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tracedin-application/app-api/src/main/resources/application.yml b/tracedin-application/app-api/src/main/resources/application.yml index 3aaa383..9b115ab 100644 --- a/tracedin-application/app-api/src/main/resources/application.yml +++ b/tracedin-application/app-api/src/main/resources/application.yml @@ -10,5 +10,4 @@ springdoc: default-models-expand-depth: -1 server: shutdown: graceful - port: 8989 diff --git a/tracedin-infra/src/main/java/com/univ/tracedin/infra/elasticsearch/config/ElasticSearchConfig.java b/tracedin-infra/src/main/java/com/univ/tracedin/infra/elasticsearch/config/ElasticSearchConfig.java index 53b8801..9efe976 100644 --- a/tracedin-infra/src/main/java/com/univ/tracedin/infra/elasticsearch/config/ElasticSearchConfig.java +++ b/tracedin-infra/src/main/java/com/univ/tracedin/infra/elasticsearch/config/ElasticSearchConfig.java @@ -10,11 +10,11 @@ @EnableElasticsearchRepositories(basePackages = "com.univ.tracedin") public class ElasticSearchConfig extends ElasticsearchConfiguration { - @Value("${elasticsearch.host}") - private String host; + @Value("${elasticsearch.host-and-port}") + private String hostAndPort; @Override public ClientConfiguration clientConfiguration() { - return ClientConfiguration.builder().connectedTo(host).build(); + return ClientConfiguration.builder().connectedTo(hostAndPort).build(); } } diff --git a/tracedin-infra/src/main/resources/application-infra.yml b/tracedin-infra/src/main/resources/application-infra.yml index 4c8f436..6b32386 100644 --- a/tracedin-infra/src/main/resources/application-infra.yml +++ b/tracedin-infra/src/main/resources/application-infra.yml @@ -7,7 +7,7 @@ spring: elasticsearch: client: host: ${ELASTIC_HOST} - host: ${ELASTICSEARCH_HOST:localhost:9200} + host-and-port: ${ELASTICSEARCH_HOST:localhost:9200} port: 9200 --- @@ -19,5 +19,5 @@ spring: elasticsearch: client: host: ${ELASTIC_HOST} - host: ${ELASTICSEARCH_HOST:es:9200} + host-and-port: ${ELASTICSEARCH_HOST:es:9200} port: 9200