Neo4j/SDN警告:没有为异常类的类找到标识字段

bru*_*oid 3 spring neo4j spring-data-neo4j spring-boot 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);
    }

}
Run Code Online (Sandbox Code Playgroud)

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

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
Run Code Online (Sandbox Code Playgroud)

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

Lua*_*nne 5

您可以忽略此警告 - 这是由SDN在构建元数据Spring Data REST集成时生成的.它当然不应该用于例外,我们将修复此问题.

  • 警告不应被忽视; 2年了,警告仍在吐出. (4认同)