💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
```java //如果实体类被注解@Document标注并指定indexName,当索引不存在时会 //自动创建索引,这里就不对索引操作记录笔记了,可参考官网文档 //https://docs.spring.io/spring-data/elasticsearch/docs/4.2.5/reference/html/#elasticsearch.operations @Document(indexName = "product", shards = 3, replicas = 1) public class Product { ... } ```