#35 springboot: external read - application.yml

This commit is contained in:
haerong22
2023-03-20 03:27:56 +09:00
parent 8bec270be5
commit cd964ecf23
2 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
my:
datasource:
url: local.db.com
username: local_user
password: local_pw
etc:
max-connection: 10
timeout: 60s
options: LOCAL,CACHE
---
spring:
config:
activate:
on-profile: dev
my:
datasource:
url: dev.db.com
username: dev_user
password: dev_pw
etc:
max-connection: 10
timeout: 60s
options: DEV,CACHE
---
spring:
config:
activate:
on-profile: prod
my:
datasource:
url: prod.db.com
username: prod_user
password: prod_pw
etc:
max-connection: 50
timeout: 10s
options: PROD,CACHE