05 2019 档案

NoNodeAvailableException[None of the configured nodes are available:[.127.0.0.1}{127.0.0.1:9300]
摘要:我在springboot 集成 elasticsearch,启动springboot测试创建索引,建立索引的时候报 NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{jzxmY2H9RVSWNO1-6y28sA}{127.0.0.1}{127.0.0.1:9300}]] 阅读全文

posted @ 2019-05-15 14:28 仰望星空的脚踏实地 阅读(2101) 评论(0) 推荐(0)

java.lang.IllegalStateException: Received message from unsupported version: [5.2.2] minimal compatible version is: [5.6.0]
摘要:启动elasticsearch-6.2.2-Windows服务时报错:java.lang.IllegalStateException: Received message from unsupported version: [5.2.2] minimal compatible version is: [5.6.0] 阅读全文

posted @ 2019-05-15 11:34 仰望星空的脚踏实地 阅读(6637) 评论(0) 推荐(0)

Failed to instantiate [org.elasticsearch.client.transport.TransportClient]
摘要:当我按elasticsearch老版本2.x(2.4.6)引用maven文件时,如下: Failed to instantiate [org.elasticsearch.client.transport.TransportClient] org.elasticsearch.client低版本 报找不到getTransportClient() 阅读全文

posted @ 2019-05-15 11:25 仰望星空的脚踏实地 阅读(4678) 评论(0) 推荐(0)

java.lang.ClassNotFoundException: com.sun.jna.Native
摘要:Springboot 集成 ElasticSearch的时候,报错如下: java.lang.ClassNotFoundException: com.sun.jna.Native 阅读全文

posted @ 2019-05-15 11:18 仰望星空的脚踏实地 阅读(6281) 评论(0) 推荐(0)

springboot集成elasticsearch
摘要:一种直接使用官方的集成工具(引用spring-boot-starter-data-elasticsearch依赖),然后通过hibernate JPA规范,dao层继承ElasticsearchRepository,controller依赖注入这个dao接口,就相当于对索引库操作了。 另一种是自己写Client连接。如本知识点。 阅读全文

posted @ 2019-05-15 11:03 仰望星空的脚踏实地 阅读(8602) 评论(0) 推荐(0)

springboot集成swagger2
摘要:springboot集成swagger2 阅读全文

posted @ 2019-05-10 17:40 仰望星空的脚踏实地 阅读(66623) 评论(3) 推荐(3)

springboot单元测试
摘要:springboot之单元测试 阅读全文

posted @ 2019-05-08 11:38 仰望星空的脚踏实地 阅读(3816) 评论(0) 推荐(0)