Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

How do you use both Spring Data JPA and Spring Data Elasticsearch repositories on the same domain class in a Spring Boot application?

@SpringBootApplication
@EnableJpaRepositories(excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = ElasticsearchCrudRepository.class))
@EnableElasticsearchRepositories(includeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = ElasticsearchCrudRepository.class))
public class MyApplication {
    ...
}
Comment

PREVIOUS NEXT
Code Example
Java :: Array first Occurence 
Java :: Calling constructor methods in java 
Java :: initialize generic array java 
Java :: open youtube in landscape mode on button click in android progmatically 
Java :: convertir un float en int en java 
Java :: Read array of characters from space separated values in java 
Java :: Join Two Java Strings 
Java :: https://java2blog.com/java-program-count-number-words-string/ 
Java :: Uri/Beecrowd Problem no - 1185 Solution in Java 
Java :: SpringBootStarter maven dependency 
Java :: jks not found when trying googlenethttptransport 
Java :: reading txt file javafx 
Java :: Reference in java equal operator 
Java :: plantuml java 
Java :: java class extension 
Java :: first method in jdbc 
Java :: Retrieve Image from java database. 
Java :: a multi-value map, Map<K, Collection<V, supporting multiple values per key 
Java :: Enlist Operations in ComboBox (Addition, Subtraction, Division, Multiplication in java 
Java :: what isz meaning of EL in jsp 
Java :: how to write 1,2,3,4.... in java 
Java :: Sling authentication handler example 
Java :: activity show 1 time in android studio java 2022 
Java :: how to declare and allocate memory to array in java 
Java :: intellij disable welcome screen 
Java :: open youtube by default in full screen pragmatically 
Java :: print max activity by greedy technique in java 
Java :: java format zero padded binary 
Java :: how to compare two characters in java 
Java :: Java if...else...if Statement 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =