我有一个类似于以下的存储库,其中我使用带参数的带注释的查询。但是,当涉及到替换时,它会失败,但有以下例外:org.neo4j.cypher.ParameterNotFoundException: Expected a parameter named custType1
public class CustTypes {
    public static final String TYPE1 = "foo";
    public static final String TYPE2 = "bar";
}
public interface CustomQueryRepository extends GraphRepository<CustomEntity> {
    @Query(
        value = 
            " START c=node({0}) "
          + " WHERE c.type! = {custType1} "
          + "    OR c.type! = {custType2} "
          + "RETURN DISTINCT c, c.type AS compType",
        params = {
            "custType1", CustTypes.TYPE1,
            "custType2", CustTypes.TYPE2
    })
    Iterable<CustomMapResult> getTypes(List<Long> nodeIds);
}
我也已经尝试过使用命名参数(with @Param),nodeIds这没有任何区别。
我在这里缺少什么,或者我不能Query.params与方法参数混合?
我正在使用 spring-data-neo4j 版本2.3.0.M1
提前致谢