@PerformsWrites使用错误:无法使用Mode.DEFAULT以外的模式

时间:2017-07-31 09:47:23

标签: neo4j pom.xml

我在我的pom文件中使用procedure-compiler。添加它和构建会在标题中显示错误。 我在这里学到:neo4j: user defined procedure exception "Write operations are not allowed for `READ` transactions" @Procedure注释是3.1之前的旧方法。但是我在3.2.2。 禁用编译器和构建似乎工作正常,所以我确定这是一个误报错误。我怎么让它沉默,以便我可以再次使用编译器?

以下是一个例子:

  @Procedure(value = "WL.CreateArgumentGroup", mode = Mode.WRITE)
    @Description("Takes node id's and create a new arg group with those nodes as premises")
    public Stream<LongResult> CreateArgumentGroup(@Name("nodeIds") List<Long> nodeIds)

Pom代码:

  <properties>
    <neo4j.version>3.2.2</neo4j.version>
  </properties>

  <dependencies>

   <dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>procedure-compiler</artifactId>
    <version>${neo4j.version}</version>
    <scope>compile</scope>
    <optional>true</optional>
   </dependency>

0 个答案:

没有答案
相关问题