From ee91ba38b7cc3cf30dce0c0b79824cded4503eea Mon Sep 17 00:00:00 2001 From: minsu Date: Sun, 18 Feb 2024 14:45:13 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20application.properties=20dev=20prod=20?= =?UTF-8?q?=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.properties | 6 ++++++ src/main/resources/application-prod.properties | 7 +++++++ src/main/resources/application.properties | 4 +--- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/application-dev.properties create mode 100644 src/main/resources/application-prod.properties diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties new file mode 100644 index 0000000..d32ac23 --- /dev/null +++ b/src/main/resources/application-dev.properties @@ -0,0 +1,6 @@ +spring.security.user.name=admin +spring.security.user.password=1234 +server.port=5050 +eureka.server.my-url=eureka +eureka.client.service-url.defaultZone=\ + http://${spring.security.user.name}:${spring.security.user.password}@localhost:${server.port}/${eureka.server.my-url}/ diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties new file mode 100644 index 0000000..8aa88cb --- /dev/null +++ b/src/main/resources/application-prod.properties @@ -0,0 +1,7 @@ +spring.security.user.name=admin +spring.security.user.password=1234 +server.port=5050 +server.address=180.210.82.248 +eureka.server.my-url=eureka +eureka.client.service-url.defaultZone=\ + http://${spring.security.user.name}:${spring.security.user.password}@${server.address}:${server.port}/${eureka.server.my-url}/ diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8131f1d..db0bb69 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,9 +2,7 @@ server.shutdown=graceful spring.lifecycle.timeout-per-shutdown-phase=10s eureka.client.register-with-eureka=false eureka.client.fetch-registry=false -spring.security.user.name=admin -spring.security.user.password=1234 -server.port=5050 +spring.profiles.active=dev eureka.client.service-url.defaultZone=\ http://${spring.security.user.name}:${spring.security.user.password}@180.210.82.248:${server.port}/eureka/