当前位置:网站首页>Neo4j installation, operation, project construction and function realization
Neo4j installation, operation, project construction and function realization
2022-07-01 01:31:00 【prefect_ start】
1、neo4j The download
1.1、 Enter official website , Download address
Find the corresponding version and download it
reminder :3.x Versions depend on jdk8,4.x Versions depend on jdk11, Choose to download according to your own environment
1.2、window Environment configuration , I was in window Environment , And has been installed JDK8
1.2.1、 After downloading, unzip it to the specified folder , No installation required

1.2.2、 Configure environment variables

add to PATH Path configuration 
1.2.3、 hold Neo4j Installed as a service
Open the command line window as Administrator , Get into neo4j Of bin Catalog 
Install and uninstall Services :
neo4j install-service
neo4j uninstall-service
Start the service , Out of Service , Restart the service and query the status of the service :
neo4j start
neo4j stop
neo4j restart
neo4j status

Start the service 
1.2.4、 client , The default account passwords are neo4j

The first entry will let you change your password 
Successful connection 
1.2.5、 Test creation , Execute the following statement
create(e:Person{
name:" Zhang San "}) return e

1.3、CQL Related to the grammar , Please check the official website or CQL grammar
1.4、SpringBoot Project integration 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、 Function is introduced


边栏推荐
- 用recyclerReview展示Banner,很简单
- Visual studio 2019 Download
- 微生物安全与健康,什么是生物处理?
- 农产品换房?“变相”购房补贴!
- 【office办公-pdf篇】pdf合并与拆分让我们摆脱付费软件的功能限制好不好
- Use strictmode strictmode principle (1)
- 面对产业互联网的时候,甚至还用消费互联网的方式和方法去落地和实践产业互联网
- StrictMode分析Registion-StrictMode原理(4)
- flutter报错 -- The argument type ‘Function‘ can‘t be assigned to the parameter type ‘void Function()?‘
- 基础知识之一——STA基础概述
猜你喜欢

1500w播放下还藏着什么热点?B站2个未来趋势你不得错过

图的连通性基础
![Split the linked list [take next first and then cut the linked list to prevent chain breakage]](/img/eb/708ab20c13df75f4dbd2d6461d3602.png)
Split the linked list [take next first and then cut the linked list to prevent chain breakage]

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

Install redis database and download redis Desktop Manager in win11

用recyclerReview展示Banner,很简单

Why not two or four TCP handshakes

Complete software development process

Uniapp official component clicking item is invalid, solution

dc_ Study and summary of labs--lab1
随机推荐
Q play soft large toast to bring more comfortable sleep
qt5-MVC:数据可视化的层次揭秘
农产品换房?“变相”购房补贴!
DC学习笔记正式篇之零——综述与基本流程介绍
6月第4周榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
Pytorch programming knowledge (2)
为什么要搭建个人博客
Why build a personal blog
Interpreting the scientific and technological literacy contained in maker Education
K210 access control complete
基础知识之二——STA相关的基本定义
Open3d point cloud bounding box
C语言一点点(未来可会增加)
【多源bfs】934. Shortest Bridge
One of the basics - overview of sta Basics
Note d'étude du DC: zéro dans le chapitre officiel - - Aperçu et introduction du processus de base
Draw some interesting figures with flutter's canvas
编译安装oh-my-zsh
New opportunities for vr/ar brought by metauniverse
StrictMode卡顿与泄漏检测-StrictMode原理(2)