springboot 整合 elasticsearch 搜索引擎 实例
data: elasticsearch: cluster-name: nowcoder cluster-nodes: 127.0.0.1:9300需要在你要加入es中的实体上添加注解:package com.nowcoder.community.entity;import org.springframework.data.annotation.Id;import org.springframework.data.elasticsearch.annotatio.
原创
2021-03-26 11:19:05 ·
464 阅读 ·
0 评论