You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't use @EnableReactiveElasticsearchRepositories, But it seems to scan my code and throw out some info messages.I wonder why it works, and it generates a message every time I add a JPA repository.
2024-07-13T19:43:33.338+08:00 INFO 4648 --- [spring-data-example] [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface org.example.springdataexample.repositories.jdbc.ItemRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
2024-07-13T19:43:33.338+08:00 INFO 4648 --- [spring-data-example] [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface org.example.springdataexample.repositories.jdbc.PersonRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
I found that ReactiveElasticsearchRepositoriesAutoConfiguration triggers at the same time as ElasticsearchRepositoriesAutoConfiguration, and now I can only exclude one startup class to avoid it scanning my code with another
- @SpringBootApplication+ @SpringBootApplication(exclude = ReactiveElasticsearchRepositoriesAutoConfiguration.class)
public class SpringDataExampleApplication {
public static void main(String[] args) {
SpringApplication.run(SpringDataExampleApplication.class, args);
}
}
wilkinsona
changed the title
Problem Mirror: Questions about using Spring Data Jpa and Spring Data Elasticsearch console information
ReactiveElasticsearchRepositoriesAutoConfiguration should back off when Reactor is not on the classpath
Aug 1, 2024
Original Problem Address
spring-projects/spring-data-elasticsearch#2940
problem description
I didn't use
@EnableReactiveElasticsearchRepositories
, But it seems to scan my code and throw out some info messages.I wonder why it works, and it generates a message every time I add a JPA repository.I found that ReactiveElasticsearchRepositoriesAutoConfiguration triggers at the same time as ElasticsearchRepositoriesAutoConfiguration, and now I can only exclude one startup class to avoid it scanning my code with another
Is there a better way to avoid this?
example code
I told you about my example code uploaded to
https://github.com/mitu2/spring-data-example
The text was updated successfully, but these errors were encountered: