Springboot 2.3.11 与ES 7.x 搭建报错
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchRestClientBuilder' defined in class path resource [org/springframework/boot/autoconfigure/elasticsearch/ElasticsearchRestClientConfigurations$RestClientBuilderConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.RestClientBuilder]: Factory method 'elasticsearchRestClientBuilder' threw exception; nested exception is java.lang.IllegalArgumentException: hosts must not be null nor empty
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.suppor