dont put database in jar file when building.

The resource folder ends up in the jar file. The database is NOT a
static resource
This commit is contained in:
CodeSteak 2020-02-09 11:38:59 +01:00
parent a7f63c65ca
commit 5f51e6e007
2 changed files with 2 additions and 1 deletions

1
prototype/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
./test.db

View File

@ -6,7 +6,7 @@
logging.level.org.springframework.web=INFO logging.level.org.springframework.web=INFO
# DATABASE # DATABASE
spring.datasource.url = jdbc:sqlite:src/main/resources/test.db spring.datasource.url = jdbc:sqlite:./test.db
spring.datasource.driverClassName = org.sqlite.JDBC spring.datasource.driverClassName = org.sqlite.JDBC
spring.jpa.properties.hibernate.dialect = org.hso.ecommerce.db.SQLiteDialect spring.jpa.properties.hibernate.dialect = org.hso.ecommerce.db.SQLiteDialect
spring.jpa.hibernate.ddl-auto=update spring.jpa.hibernate.ddl-auto=update