赞
踩
可能的原因:
1、项目引用的ES版本和ES服务的版本不一样;
参考Spring官方文档的版本匹配链接
https://docs.spring.io/springdata/elasticsearch/docs/3.2.5.RELEASE/reference/html/#repositories
2、端口不正确,tcp访问端口是9300;
3、cluster.name不正确,可以通过访问http://localhost:9200/查看ES服务下的cluster.name;
4、ES服务没启动;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。