server:
port: 8081
servlet:
encoding:
charset: utf-8
force: true
spring:
datasource:
url: jdbc:h2:mem:test;MODE=MySQL
driver-class-name: org.h2.Driver
username: sa
password:
h2:
console:
enabled: true
jpa:
open-in-view: false
hibernate:
ddl-auto: create
properties:
'[hibernate.default_batch_fetch_size]': 100
'[hibernate.format_sql]': true
show-sql: true
output:
ansi:
enabled: always
logging:
level:
'[shop.mtcoding.bank]': DEBUG
'[org.hibernate.type]': TRACE
server:
port: 5000 # 배포
servlet:
encoding:
charset: utf-8
force: true
spring:
datasource:
url: jdbc:mariadb://${rds.hostname}:${rds.port}/${rds.db.name}
driver-class-name: org.mariadb.jdbc.Driver
username: ${rds.username}
password: ${rds.password}
jpa:
open-in-view: false
hibernate:
ddl-auto: none
properties:
'[hibernate.default_batch_fetch_size]': 100
logging:
level:
'[shop.mtcoding.bank]': INFO
server:
port: 8080
servlet:
encoding:
charset: utf-8
force: true
spring:
datasource:
url: jdbc:h2:mem:test;MODE=MySQL
driver-class-name: org.h2.Driver
username: sa
password:
h2:
console:
enabled: true
jpa:
open-in-view: false
hibernate:
ddl-auto: create
properties:
'[hibernate.default_batch_fetch_size]': 100
'[hibernate.format_sql]': true
show-sql: true
output:
ansi:
enabled: always
logging:
level:
'[shop.mtcoding.bank]': DEBUG
'[org.hibernate.type]': TRACE
dev로 되어있으면 application-dev를 읽는다.
spring:
profiles:
active:
- dev