-
Notifications
You must be signed in to change notification settings - Fork 14
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
Spring boot ElasticsearchRestClientAutoConfiguration is shaded by ElasticsearchEvolutionAutoConfiguration #29
Labels
bug
Something isn't working
Comments
Yes, you are totally right. It should look like this: @AutoConfigureAfter(name = {
"org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientAutoConfiguration", // spring-boot 2.1 / 2.2
"org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration" // spring-boot 2.3+
}) Will be fixed soon ;) |
@xtermi2 Thanks for the fast fix! Could you please say when to expect the next release with this fix? It would be great to understand it so we can decide to wait for it or we will have to make our own build. |
xtermi2
added a commit
that referenced
this issue
Mar 11, 2021
…er_for_spring-boot_2.3+ fixes issue #29: AutoConfigureAfter ElasticsearchRestClientAutoConfiguration (moved in spring-boot 2.3)
@ivan-bezyazychnyy The release |
@xtermi2 Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As I can see the spring boot's
ElasticsearchRestClientAutoConfiguration
might happen afterElasticsearchEvolutionAutoConfiguration
.I see that
ElasticsearchEvolutionAutoConfiguration
contains the code:But I do not see the
org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientAutoConfiguration
and I seeorg.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
in spring boot 2.4.3. May be it was replaced?As a result the
RestHighLevelClient
is configured byelasticsearch-evolution
and some configuration parameters likespring.elasticsearch.rest.username
are not supported.I suggest to add extra line into
@AutoConfigureAfter
.The text was updated successfully, but these errors were encountered: