当前位置:网站首页>neo4j安装、运行以及项目的构建和功能实现
neo4j安装、运行以及项目的构建和功能实现
2022-07-01 00:41:00 【prefect_start】
1、neo4j的下载
1.1、进入官网,下载地址
找到对应的版本进行下载即可
温馨提示:3.x版本依赖于jdk8,4.x版本依赖于jdk11,根据自己环境选择下载
1.2、window环境配置,我是在window环境进行配置的,并且已经安装完JDK8
1.2.1、下载后解压到指定文件夹即可,不需要安装

1.2.2、配置环境变量

添加PATH路径配置
1.2.3、把Neo4j安装为服务
以管理员身份打开命令行窗口,进入neo4j的bin目录
安装和卸载服务:
neo4j install-service
neo4j uninstall-service
启动服务,停止服务,重启服务和查询服务的状态:
neo4j start
neo4j stop
neo4j restart
neo4j status

启动服务
1.2.4、客户端,默认账号密码都是neo4j

第一次进入会让修改密码
连接成功
1.2.5、测试创建,执行如下语句
create(e:Person{
name:"张三"}) return e

1.3、CQL相关语法,请查看官网或者CQL语法
1.4、SpringBoot项目集成spring-boot-starter-data-neo4j
1.4.1、pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.davidji80.springboot</groupId>
<artifactId>neo4j</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>neo4j</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-neo4j</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--lombok-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!--swagger-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.8.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
1.4.2、yml
spring:
data:
neo4j:
uri: bolt://localhost:7687
username: neo4j
password: 123456
application:
name: neo4j-server
server:
port: 9999
1.4.3、功能介绍


边栏推荐
- StrictMode分析Activity泄漏-StrictMode原理(3)
- How to do the performance pressure test of "Health Code"
- 【学习笔记】简单dp
- 流批一体在京东的探索与实践
- Orb-slam2 source code learning (II) map initialization
- visual studio 2019 快捷键备忘
- 二季度最后一天
- Note d'étude du DC: zéro dans le chapitre officiel - - Aperçu et introduction du processus de base
- [network packet loss and network delay? This artifact can help you deal with everything!]
- 06.论Redis持久化的几种方式
猜你喜欢

Q play soft large toast to bring more comfortable sleep

dc_labs--lab1的学习与总结

友盟(软件异常实时监听的好帮手:Crash)接入教程(有点基础的小白最易学的教程)

Principes de formation de la programmation robotique

二十多年来第一次!CVPR最佳学生论文授予中国高校学生!

技术人进阶画业务大图,手把手教学来了

探索互联网时代STEAM教育创新之路

【qt5-tab标签精讲】Tab标签及内容分层解析

Xjy-220/43ac220v static signal relay

Poor students can also play raspberry pie
随机推荐
For the first time in more than 20 years! CVPR best student thesis awarded to Chinese college students!
TCP三次握手为什么不是两次或四次
Training discipline principle of robot programming
Principes de formation de la programmation robotique
Inspire students' diversified thinking with steam Education
Looksrare team's "cash out" caused disturbance
Openmv and k210 of the f question of the 2021 video game call the openmv API for line patrol, which is completely open source.
技术人进阶画业务大图,手把手教学来了
Interpreting the scientific and technological literacy contained in maker Education
Introduction and principle analysis of cluster and LVS
MFC TCP communication server client demo notes vs2019
Analyzing the wisdom principle in maker education practice
软硬件基础知识学习--小日记(1)
冲击继电器ZC-23/DC220V
OCR的一些项目
为什么要搭建个人博客
Fluent JSON serialization deserialization
【网络丢包,网络延迟?这款神器帮你搞定所有!】
尝试新的可能
Call the classic architecture and build the model based on the classic