93°

SND - 其他

 

出现如下警告:

2019-07-11 19:47:46.600 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.errorEnabled
2019-07-11 19:47:46.602 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.name
2019-07-11 19:47:46.602 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.infoEnabled
2019-07-11 19:47:46.603 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.debugEnabled
2019-07-11 19:47:46.603 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.traceEnabled
2019-07-11 19:47:46.603 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.warnEnabled
2019-07-11 19:47:46.735 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.errorEnabled
2019-07-11 19:47:46.735 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.name
2019-07-11 19:47:46.736 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.infoEnabled
2019-07-11 19:47:46.736 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.debugEnabled
2019-07-11 19:47:46.736 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.traceEnabled
2019-07-11 19:47:46.737 [main] -| WARN  o.s.d.n.mapping.Neo4jPersistentProperty-Owning ClassInfo is null for property: org.slf4j.Logger.warnEnabled

是因为 spring bean 中 定义的 logger 没有使用 static 修饰
 

2019-07-11 19:49:14.047 [main] -| WARN  o.s.b.a.d.n.Neo4jDataAutoConfiguration$Neo4jWebConfiguration$Neo4jWebMvcConfiguration-spring.data.neo4j.open-in-view is enabled by default.Therefore, database queries may be performed during view rendering. Explicitly configure spring.data.neo4j.open-in-view to disable this warning

将   open-in-view: true   配置显示定义就行

 

 

本文由【C】发布于开源中国,原文链接:https://my.oschina.net/u/2552286/blog/3073032

全部评论: 0

    我有话说: