# Use neo4j from java application

**URL:** <https://community.neo4j.com/t/use-neo4j-from-java-application/19467>\
**Category:** Java\
**Created:** [June 2, 2020, 1:29pm UTC](https://community.neo4j.com/t/use-neo4j-from-java-application/19467 "2020-06-02T13:29:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madiskou](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/madiskou/32/16515_2.png) [@madiskou](https://community.neo4j.com/u/madiskou)\
**Post date:** [June 2, 2020, 1:29pm UTC](https://community.neo4j.com/t/use-neo4j-from-java-application/19467/1 "2020-06-02T13:29:17Z")

</div>

Hello,  
I have a neo4j database and i want to access it within a java application.  
I want to know if i go fro the neo4j driver or a Spring Data Neo4J ?  
I want to know the advantages of each method.

In my case i have request for getting nodes and relations and add/deleting label on nodes.

Regards,

---

<div class="post-metadata">

**Author:** ![koji](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/koji/32/27564_2.png) [@koji](https://community.neo4j.com/u/koji)\
**Post date:** [June 2, 2020, 9:00pm UTC](https://community.neo4j.com/t/use-neo4j-from-java-application/19467/2 "2020-06-02T21:00:29Z")

</div>

If you want to learn from the beginning, you can use the example below.  
Finally, you learn how to make the Plugin, it will be perfect.

A "Hello World" example

> **[Neo4j documentation - Neo4j Documentation](https://neo4j.com/docs/)**

Spring Data Neo4j

> **[Spring Data Neo4j - Developer Guides](https://neo4j.com/developer/spring-data-neo4j/)**
>
> For Java developers who use the Spring Framework or Spring Boot and want to take advantage of reactive development principles, this guide introduces Spring integration through the Spring Data Neo4j project.

User Defined Procedures and Functions

> **[User Defined Procedures and Functions - Developer Guides](https://neo4j.com/developer/cypher/procedures-functions/)**
>
> This guide explains how to use, create and deploy user defined procedures and functions, the extension mechanism of Cypher, Neo4j's query language. It also covers existing, widely used procedure libraries

---

<div class="post-metadata">

**Author:** ![madiskou](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/madiskou/32/16515_2.png) [@madiskou](https://community.neo4j.com/u/madiskou)\
**Post date:** [June 4, 2020, 7:59am UTC](https://community.neo4j.com/t/use-neo4j-from-java-application/19467/3 "2020-06-04T07:59:10Z")

</div>

Hello,  
Thank you for your response.  
I already read this 2 posts, until now i choosed to use the driver but i want to know what is the benefit of using spring data ? (for know i dont need to create procedures, i use it just to update labels on the graph)
