From 5f51e6e0071e772f09e5595c71305dd5a8a4914a Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Sun, 9 Feb 2020 11:38:59 +0100 Subject: [PATCH] dont put database in jar file when building. The resource folder ends up in the jar file. The database is NOT a static resource --- prototype/.gitignore | 1 + prototype/src/main/resources/application.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 prototype/.gitignore diff --git a/prototype/.gitignore b/prototype/.gitignore new file mode 100644 index 0000000..a08614f --- /dev/null +++ b/prototype/.gitignore @@ -0,0 +1 @@ +./test.db diff --git a/prototype/src/main/resources/application.properties b/prototype/src/main/resources/application.properties index 704e4c8..23c82d2 100644 --- a/prototype/src/main/resources/application.properties +++ b/prototype/src/main/resources/application.properties @@ -6,7 +6,7 @@ logging.level.org.springframework.web=INFO # 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.jpa.properties.hibernate.dialect = org.hso.ecommerce.db.SQLiteDialect spring.jpa.hibernate.ddl-auto=update