es启动器
1.只需要在nacos的yml中配置:
elasticsearch:
address: 10.0.40.13:9200
username:
password:
2.然后在项目中引入下依赖:
<dependency>
<groupId>io.github.bigbigfeifei</groupId>
<artifactId>es-spring-boot-start</artifactId>
<version>1.0</version>
</dependency>
3.文章:
https://blog.csdn.net/qq_34905631/article/details/127394151?spm=1001.2014.3001.5501 https://mp.weixin.qq.com/s/E7ZckUVvC-v2nUV7AXwEaQ
即可轻松使用es