30 lines
1.0 KiB
Properties
30 lines
1.0 KiB
Properties
#set H2 in file mode as the production DB
|
|
spring.jpa.database=H2
|
|
spring.datasource.driverClassName=org.h2.Driver
|
|
spring.datasource.url=jdbc:h2:file:~/.h2/bootapi;AUTO_SERVER=TRUE;DB_CLOSE_DELAY=-1;
|
|
spring.datasource.username=sa
|
|
spring.datasource.password=
|
|
|
|
#disable automatic initialize for embedded H2
|
|
spring.jpa.hibernate.ddl-auto=none
|
|
spring.datasource.initialize=false
|
|
flyway.enabled=true
|
|
|
|
#connection pool settings
|
|
spring.datasource.initial-size=10
|
|
spring.datasource.max-active=100
|
|
spring.datasource.min-idle=8
|
|
spring.datasource.max-idle=8
|
|
#spring.datasource.time-between-eviction-runs-millis=
|
|
#spring.datasource.min-evictable-idle-time-millis=
|
|
#spring.datasource.max-wait=
|
|
|
|
# logging settings
|
|
logging.file=/var/log/springside/boot-api.log
|
|
#logging.level.org.hibernate=WARN
|
|
|
|
# optional tomcat settings
|
|
#server.contextPath=/ by default
|
|
#server.tomcat.maxThreads=200 by default
|
|
#server.tomcat.compression=on(off by default)
|
|
#server.tomcat.compressableMimeTypes=application/json,application/xml (text/html, text/xml, and text/plain by default) |