diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index d365592..9e4d113 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -3,4 +3,6 @@ spring.sql.init.mode=always spring.datasource.url=jdbc:h2:file:./db/filmorate spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa -spring.datasource.password=password \ No newline at end of file +spring.datasource.password=password +spring.datasource.schema=classpath:schema.sql +spring.datasource.data=classpath:data.sql \ No newline at end of file diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties index c0bd8e3..d002829 100644 --- a/src/test/resources/application.properties +++ b/src/test/resources/application.properties @@ -1,6 +1,6 @@ logging.level.org.zalando.logbook=TRACE spring.sql.init.mode=always -spring.datasource.url=jdbc:h2:file:./db/filmorate +spring.datasource.url=jdbc:h2:file:./db/filmorate-test spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password=password