【发布时间】:2024-01-17 13:46:01
【问题描述】:
在我的 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 在这个类中寻找身份字段?如何正确配置我的应用程序以跳过此警告?
【问题讨论】:
标签: spring neo4j spring-boot spring-data-neo4j spring-data-neo4j-4