[PPN-210926-5] Set-up database for development environment

This commit is contained in:
woozu.shin
2021-09-26 21:20:16 +09:00
parent 398a94ce3f
commit ab4ab339f6
29 changed files with 632 additions and 26 deletions

View File

@@ -4,4 +4,12 @@ public final class ObjectUtil {
private ObjectUtil() {}
public static boolean isEmpty(Object o) {
return o == null;
}
public static boolean isNotEmpty(Object o) {
return !isEmpty(o);
}
}

View File

@@ -0,0 +1,41 @@
spring:
jpa:
open-in-view: false
hibernate:
ddl-auto: create
datasource:
# driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:ppomppu-local;DB_CLOSE_DELAY=-1
hikari:
minimum:idle: 5
maximum-pool-size: 10
idle-timeout: 600000
validation-timeout: 5000
connection-timeout: 5000
max-lifetime: 1800000
auto-commit: false
h2:
console:
enabled: true
path: /h2
port: 20082
datasource:
init: true
units:
- unit-name: ppomppu
schema-name: ppomppu-local
db-connection-url: jdbc:h2:mem:ppomppu-local
simple-connection-url: true
hibernate:
units:
- unit-name: ppomppu
dialect: org.hibernate.dialect.H2Dialect
format-sql: true
show-sql: true
hbm2ddl-auto: create
disable-auto-commit: true

View File

@@ -1,5 +0,0 @@
webclient:
some: test
units:
- unit-name: processor-api
base-url: http://localhost:20081

View File

@@ -1,4 +0,0 @@
webclient:
units:
- unit-name: processor-api
base-url: http://soundhoundfound-processor:20080