Java 无法为spring-data-neo4j 3.0.2配置索引TypeRepresentationStrategy

Java 无法为spring-data-neo4j 3.0.2配置索引TypeRepresentationStrategy,java,xml,spring,neo4j,spring-data-neo4j,Java,Xml,Spring,Neo4j,Spring Data Neo4j,我正在尝试配置spring-data-neo4j 3.0.1.RELEASE以使用遗留(2.3.5.RELEASE)数据库。因此,我遵循文档来配置索引的类型表示策略。但是,它似乎没有任何效果,因为我仍然在日志中看到相同类型的密码查询: Executing cypher query: START `abc`=node:__types__(className="abc") RETURN `abc` 我本来希望查询节点。以下是xml配置: <context:annotation-config/

我正在尝试配置
spring-data-neo4j 3.0.1.RELEASE
以使用遗留(2.3.5.RELEASE)数据库。因此,我遵循文档来配置索引的
类型表示策略
。但是,它似乎没有任何效果,因为我仍然在日志中看到相同类型的密码查询:

Executing cypher query: START `abc`=node:__types__(className="abc") RETURN `abc`
我本来希望查询
节点。以下是xml配置:

<context:annotation-config/>

<bean id="typeRepresentationStrategyFactory" class="org.springframework.data.neo4j.support.typerepresentation.TypeRepresentationStrategyFactory">
    <constructor-arg ref="graphDatabase"/>
    <constructor-arg value="Indexed"/>
</bean>

<neo4j:config  storeDirectory="${app.neo4j.location}" base-package="x.y.z.*" />
<neo4j:repositories base-package="x.y.z.*" />


似乎忽略了类型表示策略配置。

请尝试将其放置在
元素下面。排序很重要,因为我怀疑现在您的bean被
中的bean覆盖了。这没有帮助。仍然得到相同的结果/日志。上面的查询是正确的,因此它使用了正确的策略,它使用索引查找该类型的节点,但在加载单个节点时它使用属性来知道它是哪种类型。不,它不是。spring-data-neo4j-2.x使用FQN作为类型值,我在使用neo4j web管理应用程序的图表中也直接看到了这一点。此外,上面的第一个查询将类型作为标签属性进行查询。。。