-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Questions about using Spring Data Jpa and Spring Data Elasticsearch console information #2940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
more complete output.
@mp911de can you explain why reactive repositories are searched here? |
you can set spring.data.elasticsearch.repositories.enabled=false in config to avoid spring data scan your repositories |
The question is not how to disable repository scanning, but why a reactive repository scan is done. |
Reactive repositories are enabled by Spring Boot via |
I mirrored it. spring-projects/spring-boot#41672 |
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: