简体   繁体   English

Neo4j非休息环境

[英]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). 我曾尝试运行SDN 4,但似乎仍然无法在没有REST服务(Web服务)的情况下运行它。 I wonder if it is possible to make Neo4j run without REST(Web) service? 我想知道是否可以在没有REST(Web)服务的情况下运行Neo4j? Currently trying to make an app to do simple CRUD to the database like MyBatis. 当前正在尝试使应用程序对MyBatis这样的数据库进行简单的CRUD。

SDN 4.1 (4.1.1.RELEASE) supports Neo4j running in embedded mode. SDN 4.1(4.1.1.RELEASE)支持以嵌入式模式运行的Neo4j。

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. 自动配置和Java配置模式均受支持。 The manual contains information about how to do this: http://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#_configuring_the_embedded_driver 该手册包含有关如何执行此操作的信息: 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 有一个使用嵌入式驱动程序的示例应用程序: https : //github.com/neo4j-examples/sdn4-university/tree/4.1-embedded

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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