generated from 2martens/template-service
Switched to JPA
This commit is contained in:
parent
df412e6659
commit
41d67bf5d6
|
@ -26,9 +26,10 @@ dependencies {
|
|||
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-websocket'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
|
||||
implementation 'org.springframework.data:spring-data-jdbc'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||
implementation 'io.micrometer:micrometer-registry-prometheus'
|
||||
implementation 'org.springdoc:springdoc-openapi-ui:1.3.9'
|
||||
runtimeOnly 'com.h2database:h2'
|
||||
|
||||
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
||||
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
package de.twomartens.oparlservice.configs;
|
||||
|
||||
|
||||
import de.twomartens.oparlservice.repository.NoOp;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
@Configuration
|
||||
@EnableJpaRepositories(basePackageClasses = NoOp.class)
|
||||
@EnableTransactionManagement
|
||||
public class PersistenceJPAConfig {
|
||||
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package de.twomartens.oparlservice.repository;
|
||||
|
||||
public interface NoOp {
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue