当前位置: 首页 > 工具软件 > RTFramework > 使用案例 >

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘elasticsearc

林俊晖
2023-12-01

前言

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
 类似资料:

相关阅读

相关文章

相关问答