diff --git a/build.gradle.kts b/build.gradle.kts index 1bb7f78..a5b2358 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,9 +26,12 @@ repositories { dependencies { implementation("org.springframework.boot:spring-boot-starter-data-rest") implementation("org.springframework.boot:spring-boot-starter-web") + implementation("org.springframework.boot:spring-boot-starter-data-jpa") compileOnly("org.projectlombok:lombok") annotationProcessor("org.projectlombok:lombok") testImplementation("org.springframework.boot:spring-boot-starter-test") + "developmentOnly"("org.springframework.boot:spring-boot-devtools") + runtimeOnly("com.h2database:h2") testRuntimeOnly("org.junit.platform:junit-platform-launcher") } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f163809..cb5d204 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1,12 @@ spring.application.name=TaskManagerAPI +spring.jpa.properties.hibernate.globally_quoted_identifiers=true +spring.jpa.properties.hibernate.globally_quoted_identifiers_skip_column_definitions=true + +spring.h2.console.enabled=true +spring.datasource.url=jdbc:h2:mem:db +spring.datasource.driverClassName=org.h2.Driver +spring.datasource.username=sa +spring.datasource.password=password +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect + +server.port=5001 \ No newline at end of file