摘要: APOC是Neo4j 3.3版本推出时推荐的一个Java存储过程包,包含丰富的函数和存储过程,作为对Cypher所不能提供的复杂图算法和数据操作功能的补充,APOC还具有使用灵活、高性能等优势。 1、jar包地址: https://github.com/neo4j-contrib/neo4j-apo 阅读全文
posted @ 2019-07-30 17:31 心动如雷 阅读(2259) 评论(0) 推荐(0) 编辑
摘要: 连接ES有3中方式: ①transport方式 ②rest方式 ③JEST方式(第三方) 我自己项目使用第一种方式,代码和配置如下: 1、引入依赖 <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch< 阅读全文
posted @ 2019-07-29 15:52 心动如雷 阅读(1838) 评论(0) 推荐(0) 编辑
摘要: 使用上篇文章创建的索引进行学习:https://www.cnblogs.com/wangymd/p/11200996.html 官方文档:https://www.elastic.co/guide/en/elasticsearch/painless/6.3/painless-examples.html 阅读全文
posted @ 2019-07-25 17:40 心动如雷 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: 1、创建测试索引 PUT /test_index{ "mappings": { "test_type":{ "properties": { "code":{ "type": "keyword" }, "name":{ "type": "text", "analyzer": "ik" }, "coun 阅读全文
posted @ 2019-07-25 15:24 心动如雷 阅读(3353) 评论(0) 推荐(0) 编辑
摘要: 1、项目中遇到的问题描述: 前端调用zuul统一网关服务接口,请求状态码200,但是无返回数据。 浏览器控制台报错信息:No Access-Control-Allow-Origin header is present on requested resource . 2、解决问题 借鉴https:// 阅读全文
posted @ 2019-07-17 14:19 心动如雷 阅读(2965) 评论(0) 推荐(0) 编辑
摘要: 1、pom文件引入 <!-- https://mvnrepository.com/artifact/org.ehcache/ehcache --><dependency><groupId>org.ehcache</groupId><artifactId>ehcache</artifactId><ve 阅读全文
posted @ 2019-07-11 15:45 心动如雷 阅读(999) 评论(0) 推荐(0) 编辑
摘要: maven引入 <!-- https://mvnrepository.com/artifact/org.elasticsearch/elasticsearch --> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elas 阅读全文
posted @ 2019-07-11 15:12 心动如雷 阅读(477) 评论(0) 推荐(0) 编辑
摘要: ZooKeeper ZooKeeper是一个分布式的,开放源码的分布式应用程序协调服务,是Google的Chubby一个开源的实现,是Hadoop和Hbase的重要组件。它是一个为分布式应用提供一致性服务的软件,提供的功能包括:配置维护、域名服务、分布式同步、组服务等。(百度百科) 1、下载与解压 阅读全文
posted @ 2019-06-16 11:35 心动如雷 阅读(4520) 评论(0) 推荐(0) 编辑
摘要: Kafka Kafka是由Apache软件基金会开发的一个开源流处理平台,由Scala和Java编写。Kafka是一种高吞吐量的分布式发布订阅消息系统,它可以处理消费者在网站中的所有动作流数据。(百度百科) 1、启动 1.1、下载Kafka文件 下载:kafka_2.12-2.2.0.tgz 解压: 阅读全文
posted @ 2019-06-15 19:11 心动如雷 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 1、安装Nginx $ yum -y install gcc # nginx是c写的 $ yum -y install pcre-devel # url重写用到的包 $ yum -y install zlib zlib-devel # 解压缩用到的包 扩展①: yum install -y lsof 阅读全文
posted @ 2019-06-15 13:54 心动如雷 阅读(3234) 评论(0) 推荐(0) 编辑