2017-09-25 3 views
3
난 그냥 봄 데이터 Neo4j 4.1.3에서 업데이트 한

4.2.7Neo4j 4.2 그래프의 repo 내가 받는다는 종속성을 변경 한 후 다시 실행 시작하는 내 프로젝트를 얻을 수 없었다, 지금은 모호한

입니다하지만.

이 튜토리얼에서 설명한대로 많은 문제가 수정되었습니다. https://graphaware.com/neo4j/2016/09/30/upgrading-to-sdn-42.html 그러나이 문제가 왜 발생했는지 알 수 없습니다. 내 서비스에서

> GenericService.java>createOrUpdate

... 
@Override 
public T createOrUpdate(T entity) { 
    getRepository().save(entity, DEPTH_ENTITY_NEXT); //ERROR LINE 
    if (entity instanceof Entity) 
     return find(((Entity) entity).getId()); 
    else if (entity instanceof GraphType) 
     return find(((GraphType) entity).getId()); 
    else 
     return find(((DataType) entity).getId()); 
} 
... 

getRepository 라인은 이제 다음과 같은 오류 제공 :

The method save(T, int) is ambiguous for the type 
    GraphRepository<T> 

단순히 그래프 REPO를 절약 erroring 될 것입니다.

난 그냥 일식이 오류가 표시에도 불구하고 프로젝트를 빌드 메이븐하려고하면 UPDATE. 이 오류를 인쇄합니다 :

Caused by: java.io.FileNotFoundException: class path resource [org/springframework/data/neo4j/config/Neo4jConfiguration.class] cannot be opened because it does not exist 

답변

2

종속성 관리에 문제가있는 것 같습니다. 프로젝트 구성 방법에 대한 예제는 templates을 참조하십시오.

또한 GraphRepository은 (는) 더 이상 지원되지 않으며 Neo4jRepository<T, ID>으로 대체됩니다.