简体   繁体   中英

Neo4j Non-Rest Environment

I have tried running SDN 4, but still can't seem to make it run without its REST service (web service). I wonder if it is possible to make Neo4j run without REST(Web) service? Currently trying to make an app to do simple CRUD to the database like MyBatis.

SDN 4.1 (4.1.1.RELEASE) supports Neo4j running in embedded mode.

You need the embedded driver dependency:

 <dependency>
      <groupId>org.neo4j</groupId>
      <artifactId>neo4j-ogm-embedded-driver</artifactId>
      <version>2.0.1</version>
    </dependency>

and then you'll configure it. Both auto configuration and java configuration modes are supported. The manual contains information about how to do this: http://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#_configuring_the_embedded_driver

There's a sample application that uses the embedded driver: https://github.com/neo4j-examples/sdn4-university/tree/4.1-embedded

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM