Neo4j 的 Spring 配置设置
我想集成“neo4j_config.props”文件 http://wiki.neo4j.org/content/Configuration_Settings#Optimizing_for_traversals_example
进入: neo4j spring 应用,graphDbService在 app-config.xml 中配置:
<bean id="graphDbService" class="org.neo4j.kernel.EmbeddedGraphDatabase"
init-method="enableRemoteShell" destroy-method="shutdown">
<constructor-arg index="0" value="/home/neo/var/neo4j-db"/>
</bean>
更多信息:Optimizing neo4j for traversal in Spring http://www.mail-archive.com/[电子邮件受保护]/msg04270.html
最好的方法是什么?使用 PropertyPlaceholderConfigurer 或使用 spring-util (PropertiesFactoryBean) 谢谢
I would like to integrate the "neo4j_config.props" file from
http://wiki.neo4j.org/content/Configuration_Settings#Optimizing_for_traversals_example
into the :
a neo4j spring app, the graphDbService which is configured the in app-config.xml:
<bean id="graphDbService" class="org.neo4j.kernel.EmbeddedGraphDatabase"
init-method="enableRemoteShell" destroy-method="shutdown">
<constructor-arg index="0" value="/home/neo/var/neo4j-db"/>
</bean>
more info: Optimizing neo4j for traversal in Spring
http://www.mail-archive.com/[email protected]/msg04270.html
What would be the best way to do this? Using a PropertyPlaceholderConfigurer or using using spring-util (PropertiesFactoryBean)Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答@ 使用 constructor-arg 字段填充 spring bean
Answered @ Populating a spring bean using a constructor-arg field