这是我的配置
org.neo4j.ogm.config.Configuration.Builder builder = new Builder();
org.neo4j.ogm.config.Configuration configuration = builder.
credentials("neo4j","neo").connectionPoolSize(20).verifyConnection(true).uri("bolt+routing://10.1.2.12:7687")
.uris(new String[]{
"bolt+routing://10.1.2.14:7687",
"bolt+routing://10.1.2.15:7687"
}).build();
return configuration;
这里显示错误日志我在使用spring-data-neo4j 5.0.5发布: -
2018-03-05 22:58:42.596 INFO 20927 --- [ main] Driver
: Driver instance org.neo4j.driver.internal.InternalDriver@71a9b4c7 created
2018-03-05 22:58:42.597 INFO 20927 --- [ main] LoadBalancer
: Routing table is stale. Ttl 1520270922589, currentTime
1520270922596, routers AddressSet=[10.1.2.12:7687], writers
AddressSet=[], readers AddressSet=[]
2018-03-05 22:58:43.236 INFO 20927 --- [o4jDriverIO-2-2]
ConnectionPool : Closing connection pool
towards 127.0.0.1:8000, it has no active connections and is not in the
routing table
2018-03-05 22:58:43.237 INFO 20927 --- [o4jDriverIO-2-2] LoadBalancer
: Updated routing table. Ttl 1520271223234, currentTime 1520270923237,
routers AddressSet=[localhost:7687], writers AddressSet=
[localhost:7687], readers AddressSet=[localhost:7687]
2018-03-05 22:58:43.259 INFO 20927 --- [ main]
trationDelegate$BeanPostProcessorChecker : Bean 'getSessionFactory' of
type [org.neo4j.ogm.session.SessionFactory] is not eligible for getting
processed by all BeanPostProcessors (for example: not eligible for
auto-proxying)
我在配置中遗漏了什么
答案 0 :(得分:1)
如果您指的是日志中的最后一行,那么您应该担心的是什么。如果您主动想在functions.config()
bean上进行一些后期处理,这可能更相关。
出现此消息的一个原因是您以急切(正常)的方式自动依赖依赖关系,但这根本不是问题,例如
sessionFactory
即使我重复一遍:这对你的应用程序来说根本不是问题,因为这个类不在你的控制之下,不需要任何后期处理,因为它甚至不知道Spring的存在。