spring - Neo4j/SDN 警告 : No identity field found for class of type for exception class

标签 spring neo4j spring-boot spring-data-neo4j spring-data-neo4j-4

在我的 Neo4j/Spring Data Neo4j 项目中,我有以下异常类:

public class CriterionNotFoundException extends NotFoundDomainException {

    private static final long serialVersionUID = -2226285877530156902L;

    public CriterionNotFoundException(String message) {
        super(message);
    }

}

在应用程序启动期间,我看到以下警告:

WARN  o.s.d.n.m.Neo4jPersistentProperty - No identity field found for class of type: com.example.domain.dao.decision.exception.DecisionAlreadyExistsException when creating persistent property for field: null

为什么 Neo4j/SDN 在此类中寻找身份字段?如何正确配置我的应用程序以跳过此警告?

最佳答案

您可以忽略此警告 - 这是由 SDN 在构建元数据 Spring Data REST 集成时生成的。当然,它不应该对异常执行此操作,我们将修复此问题。

关于spring - Neo4j/SDN 警告 : No identity field found for class of type for exception class,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37441024/

相关文章:

xml - 加速将数据导入 Neo4j 图形数据库

java - Spring忽略application.properties中的Mongo设置

java - 第二次调用方法后,Hibernate Session 在 Spring 事务中关闭

java - FindBy 在 JPA 中使用外键

java - Spring Data JPA - 不带参数的查询

java - 将响应从 gRPC 服务流式传输到 REST 客户端

spring-boot - 打开 api 3 默认数组生成

java - Spring Boot 更改数据源以指向 mysql 数据库

neo4j - 带有后备翻译的 ORDER BY 的密码查询

performance - Neo4j Cypher,在匹配ID(n)= id上开始n = node(id)