- 浏览: 2489415 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
neo4j(2)Sample project XML Configuration
1. Spring Configuration
###############################################
# neo4j database
###############################################
neo4j.store.directory=c://neo4j.db
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:neo4j="http://www.springframework.org/schema/data/neo4j"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/jdbc
http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd
http://www.springframework.org/schema/data/neo4j
http://www.springframework.org/schema/data/neo4j/spring-neo4j-2.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.1.xsd">
<neo4j:repositories base-package="com.sillycat.easynosql.dao.neo4j.repository"/>
<neo4j:config storeDirectory="${neo4j.store.directory}"/>
<bean id="initNeo4jService" class="com.sillycat.easynosql.dao.neo4j.init.InitNeo4jService" init-method="init"/>
</beans>
And I change the annotation for service layer to
<!--
<bean id="userService" class="com.sillycat.easynosql.service.impl.UserServiceMongoImpl">
</bean>
<bean id="userService" class="com.sillycat.easynosql.service.impl.UserServiceNeo4jImpl">
</bean>
<bean id="userService" class="com.sillycat.easynosql.service.impl.UserServiceRedisImpl">
</bean>
-->
<bean id="userService" class="com.sillycat.easynosql.service.impl.UserServiceRedisImpl">
</bean>
Make UserService to interface.
2. My jar dependency:
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>${neo4j.kernel.version}</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher</artifactId>
<version>${neo4j.cypher.version}</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher-dsl</artifactId>
<version>${neo4j.cypher.dsl.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>${spring.data.redis.version}</version>
</dependency>
<properties>
<spring.data.mongodb.version>1.1.0.BUILD-SNAPSHOT</spring.data.mongodb.version>
<spring.core.version>3.1.1.RELEASE</spring.core.version>
<neo4j.kernel.version>1.7</neo4j.kernel.version>
<neo4j.cypher.version>1.7</neo4j.cypher.version>
<neo4j.cypher.dsl.version>1.7</neo4j.cypher.dsl.version>
<spring.data.redis.version>1.0.0.RC1</spring.data.redis.version>
</properties>
This is just some initial idea from one simple example. I think I will study more about neo4j later.
references:
http://krams915.blogspot.com/2012/03/spring-mvc-31-implement-crud-with_8518.html
1. Spring Configuration
###############################################
# neo4j database
###############################################
neo4j.store.directory=c://neo4j.db
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:neo4j="http://www.springframework.org/schema/data/neo4j"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/jdbc
http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd
http://www.springframework.org/schema/data/neo4j
http://www.springframework.org/schema/data/neo4j/spring-neo4j-2.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.1.xsd">
<neo4j:repositories base-package="com.sillycat.easynosql.dao.neo4j.repository"/>
<neo4j:config storeDirectory="${neo4j.store.directory}"/>
<bean id="initNeo4jService" class="com.sillycat.easynosql.dao.neo4j.init.InitNeo4jService" init-method="init"/>
</beans>
And I change the annotation for service layer to
<!--
<bean id="userService" class="com.sillycat.easynosql.service.impl.UserServiceMongoImpl">
</bean>
<bean id="userService" class="com.sillycat.easynosql.service.impl.UserServiceNeo4jImpl">
</bean>
<bean id="userService" class="com.sillycat.easynosql.service.impl.UserServiceRedisImpl">
</bean>
-->
<bean id="userService" class="com.sillycat.easynosql.service.impl.UserServiceRedisImpl">
</bean>
Make UserService to interface.
2. My jar dependency:
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>${neo4j.kernel.version}</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher</artifactId>
<version>${neo4j.cypher.version}</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher-dsl</artifactId>
<version>${neo4j.cypher.dsl.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>${spring.data.redis.version}</version>
</dependency>
<properties>
<spring.data.mongodb.version>1.1.0.BUILD-SNAPSHOT</spring.data.mongodb.version>
<spring.core.version>3.1.1.RELEASE</spring.core.version>
<neo4j.kernel.version>1.7</neo4j.kernel.version>
<neo4j.cypher.version>1.7</neo4j.cypher.version>
<neo4j.cypher.dsl.version>1.7</neo4j.cypher.dsl.version>
<spring.data.redis.version>1.0.0.RC1</spring.data.redis.version>
</properties>
This is just some initial idea from one simple example. I think I will study more about neo4j later.
references:
http://krams915.blogspot.com/2012/03/spring-mvc-31-implement-crud-with_8518.html
发表评论
-
Stop Update Here
2020-04-28 09:00 264I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 433NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 314Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 324Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 295Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 381Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 378Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 329Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 403VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 337Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 419NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 365Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 294Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 211GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 394GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 278GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 266Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 267Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 255Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(1)Running with Component
2020-02-19 01:17 240Serverless with NodeJS and Tenc ...
相关推荐
neo4j project
neo4j mybatis的例子,全部代码先用maven下载jar包,jar包包含mybatis包,neo4j包,配置xml,编写mapper.java,mapper.xml
neo4j_sample
neo4j社区版 用户名 neo4j 密码neo4j
vue+neo4j+(neovis.js / neo4j-driver)纯前端实现知识图谱的集成 一、Neovis.js 不用获取数据直接连接数据库绘图 二、 neo4j-driver 能够直接通过前端获取数据。 三、vis.js 绘图 四、 echarts绘图 neo4j是什么? ...
Chapter 2: Getting to Know Neo4j Chapter 3: Get Up and Running with Neo4j Chapter 4: Meet Cypher Chapter 5: Managing Your Data in Neo4j Chapter 6: Importing and Exporting Data Chapter 7: Querying Data...
1. Neo4j的亮点 2. 图数据库概要 3. Neo4j图数据库 II. 教程 4. 在Java应用中使用Neo4j 5. Neo4j远程客户端库 6. 遍历查询框架 7. 数据模型范例 8. 多语言支持 9. 在Python应用中使用Neo4j 10. ...
neo4j 简介
neo4j part2 共2部分part1和part2下载后一起解压
Neo4j文档 包括中英文文档 共两份 欢迎大家下载..
基于neo4j搭建金融风控图谱.rar基于neo4j搭建金融风控图谱.rar基于neo4j搭建金融风控图谱.rar基于neo4j搭建金融风控图谱.rar基于neo4j搭建金融风控图谱.rar基于neo4j搭建金融风控图谱.rar基于neo4j搭建金融风控图谱....
SpringBoot整合neo4j案例源码
neo4j
Linux的neo4j安装包
Neo4j图数据库简介和底层原理_2
完整项目导入数据到Neo4j,通过jdbc查询Neo4j数据库,用SSM框架展示到前台,项目部署后可在前台批量导入数据,增量导入数据,添加节点,删除节点,修改节点,查询节点 有了它再也不用趟Neo4j的坑 解压密码是 neo4j
Neo4j官方中文文档-翻译.
Neo4j Java Reference 3.0
Neo4j is an open source graph database written in Java. Graph databases provide an excellent way to get richer insight into data and lower the bar for entry into the data science world. Starting with ...