article服务中报错

来源:15-2 es实践 - 发布文章新增文档数据

慕工程4420351

2021-06-24

e rror creating bean with name ‘elasticsearchClient’ defined in class path resource [org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.transport.TransportClient]: Factory method ‘elasticsearchClient’ threw exception; nested exception is java.lang.IllegalStateException: availableProcessors is already set to [16], rejecting [16]

写回答

1回答

风间影月

2021-06-24

用了esClient?和课程中不一样吧?

0
3
风间影月
回复
慕工程4420351
额,用7吧,不用和项目耦合,单独创建新的项目试试。 6和7底层都不一样了,那个client都弃用了
2021-06-24
共3条回复

Spring Cloud 进阶 Alibaba 微服务体系自媒体实战

一课收获分布式系统开发,微服务核心技术和中间件企业生产落地

1113 学习 · 896 问题

查看课程