add sql init config

This commit is contained in:
alex 2024-08-06 23:19:47 -04:00
parent 5eb975bcf9
commit 2bc7aad65f

View File

@ -21,7 +21,7 @@ spring.mail.properties.mail.smtp.starttls.required=true
# spring.datasource.url=jdbc:h2:file:./db # spring.datasource.url=jdbc:h2:file:./db
spring.datasource.url=jdbc:h2:file:/var/opt/pfs/db spring.datasource.url=jdbc:h2:file:/var/opt/pfs/db
spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.hibernate.ddl-auto=create-drop
spring.sql.init.mode=embedded spring.sql.init.mode=${SQL_INIT:embedded}
spring.datasource.driverClassName=org.h2.Driver spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa spring.datasource.username=sa
spring.datasource.password=${H2_PASS} spring.datasource.password=${H2_PASS}