在我的 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/