Elastic search 出现两个错误;小小总结
我的环境, 用spring boot整合Elastic search (下面简称es) 建了一个@document的文档类,还有一个集成ElasticSerchRepository仓库接口; 代码: 0.application.properties spring.data.elasticsearch.cluster-nodes=localhost:9300 1.文档类 @Document(indexName = "blog",type="blog") public class EsBlog implements Serializable{ private static final long serialVersionUID = 1L; @Id private String id; private String title; private String sumarry; private String content; protected EsBlog() { } public EsBlog(String id, String title, String sumarry, String content) { this.id = id; this.title = title; this.sumarry = sumarry; this.content = content; } 2.仓库类