Skip to content

Commit

Permalink
fix: 설정 파일 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kamothi committed Oct 3, 2024
1 parent 7cd45e0 commit 772cc8b
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
server:
port: 8080

spring:
profiles:
group:
"local": "localDB"
"prod": "prodDB2"
r2dbc:
url: r2dbc:pool:mysql://localhost:3306/webflux
username: root
password: ${MYSQL_PASSWORD}
#initialization-mode: always
data:
mongodb:
uri: ${MONGO_URL}
local:
- localDB
prod:
- prodDB

---

Expand All @@ -23,6 +18,15 @@ spring:
application:
name: game-service

r2dbc:
url: r2dbc:pool:mysql://localhost:3306/webflux
username: root
password: ${MYSQL_PASSWORD}
#initialization-mode: always
data:
mongodb:
uri: ${MONGO_URL}

eureka:
client:
register-with-eureka: true
Expand All @@ -33,10 +37,3 @@ eureka:
prefer-ip-address: true
ip-address: localhost
instance-id: ${spring.application.name}:${server.port}

---

spring:
config:
activate:
on-profile: "prodDB2"

0 comments on commit 772cc8b

Please sign in to comment.