From 9a52763e9fddfcf03648c21a4f35abc21442791c Mon Sep 17 00:00:00 2001 From: Eduard Frankford <e.frankford@student.uibk.ac.at> Date: Wed, 29 Jun 2022 14:59:53 +0200 Subject: [PATCH] testing --- src/main/java/at/ac/uibk/gitsearch/GitsearchApp.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/at/ac/uibk/gitsearch/GitsearchApp.java b/src/main/java/at/ac/uibk/gitsearch/GitsearchApp.java index b2f08fa85..4e2313a24 100644 --- a/src/main/java/at/ac/uibk/gitsearch/GitsearchApp.java +++ b/src/main/java/at/ac/uibk/gitsearch/GitsearchApp.java @@ -14,11 +14,21 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.context.annotation.FilterType; import org.springframework.core.env.Environment; +import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; +import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import tech.jhipster.config.DefaultProfileUtil; import tech.jhipster.config.JHipsterConstants; @SpringBootApplication +@EnableJpaRepositories(includeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = JpaRepository.class)) +@EnableElasticsearchRepositories( + includeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = ElasticsearchRepository.class) +) @EnableConfigurationProperties({ LiquibaseProperties.class, ApplicationProperties.class }) public class GitsearchApp { -- GitLab