【发布时间】:2020-01-10 08:25:00
【问题描述】:
我正在将 Spring Data Neo4j 与 Springboot 一起使用,并且该应用程序可以正常工作。
但是,如果可能,我想在启动时删除大量警告。
2019-09-08 14:15:20.788 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.apache.commons.logging.Log.fatalEnabled
2019-09-08 14:15:20.789 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.apache.commons.logging.Log.errorEnabled
2019-09-08 14:15:20.790 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.apache.commons.logging.Log.infoEnabled
2019-09-08 14:15:20.790 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.apache.commons.logging.Log.debugEnabled
2019-09-08 14:15:20.790 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.apache.commons.logging.Log.traceEnabled
2019-09-08 14:15:20.791 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.apache.commons.logging.Log.warnEnabled
2019-09-08 14:15:20.796 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.parent
2019-09-08 14:15:20.796 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.environment
2019-09-08 14:15:20.797 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.classLoader
2019-09-08 14:15:20.797 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.displayName
2019-09-08 14:15:20.797 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.startupDate
2019-09-08 14:15:20.798 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.beanDefinitionCount
2019-09-08 14:15:20.798 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.autowireCapableBeanFactory
2019-09-08 14:15:20.798 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.beanDefinitionNames
2019-09-08 14:15:20.799 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.parentBeanFactory
2019-09-08 14:15:20.799 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.id
2019-09-08 14:15:20.799 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.context.ApplicationContext.applicationName
2019-09-08 14:15:20.801 INFO 10121 --- [ restartedMain] o.s.d.neo4j.mapping.Neo4jMappingContext : No class information found in OGM meta-data for class org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration so treating as simple type for SD Commons
2019-09-08 14:15:20.802 INFO 10121 --- [ restartedMain] o.s.d.neo4j.mapping.Neo4jMappingContext : No class information found in OGM meta-data for class org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder so treating as simple type for SD Commons
2019-09-08 14:15:20.805 INFO 10121 --- [ restartedMain] o.s.d.neo4j.mapping.Neo4jMappingContext : No class information found in OGM meta-data for class org.springframework.security.config.annotation.web.builders.HttpSecurity so treating as simple type for SD Commons
2019-09-08 14:15:20.850 INFO 10121 --- [ restartedMain] o.s.d.neo4j.mapping.Neo4jMappingContext : No class information found in OGM meta-data for class java.util.ArrayList so treating as simple type for SD Commons
2019-09-08 14:15:20.896 INFO 10121 --- [ restartedMain] o.s.d.neo4j.mapping.Neo4jMappingContext : No class information found in OGM meta-data for class org.springframework.http.HttpHeaders so treating as simple type for SD Commons
2019-09-08 14:15:20.929 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.core.env.Environment.defaultProfiles
2019-09-08 14:15:20.929 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: org.springframework.core.env.Environment.activeProfiles
2019-09-08 14:15:20.932 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.initParameterNames
2019-09-08 14:15:20.932 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.virtualServerName
2019-09-08 14:15:20.932 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.classLoader
2019-09-08 14:15:20.932 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.filterRegistrations
2019-09-08 14:15:20.933 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.servletNames
2019-09-08 14:15:20.933 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.sessionTrackingModes
2019-09-08 14:15:20.933 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.contextPath
2019-09-08 14:15:20.933 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.defaultSessionTrackingModes
2019-09-08 14:15:20.934 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.majorVersion
2019-09-08 14:15:20.934 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.effectiveMinorVersion
2019-09-08 14:15:20.934 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.sessionCookieConfig
2019-09-08 14:15:20.934 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.effectiveSessionTrackingModes
2019-09-08 14:15:20.934 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.attributeNames
2019-09-08 14:15:20.935 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.serverInfo
2019-09-08 14:15:20.935 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.servletRegistrations
2019-09-08 14:15:20.935 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.jspConfigDescriptor
2019-09-08 14:15:20.935 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.servlets
2019-09-08 14:15:20.936 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.requestCharacterEncoding
2019-09-08 14:15:20.936 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.responseCharacterEncoding
2019-09-08 14:15:20.936 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.sessionTimeout
2019-09-08 14:15:20.936 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.minorVersion
2019-09-08 14:15:20.937 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.servletContextName
2019-09-08 14:15:20.937 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.ServletContext.effectiveMajorVersion
2019-09-08 14:15:20.938 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.FilterConfig.initParameterNames
2019-09-08 14:15:20.938 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.FilterConfig.servletContext
2019-09-08 14:15:20.939 WARN 10121 --- [ restartedMain] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: javax.servlet.FilterConfig.filterName
是什么让它如此不开心?
【问题讨论】:
-
你有想过这个吗?
-
不,我现在只是过滤那些:(
-
其实,我终于解决了... :)。我会发布答案...
标签: spring-boot neo4j spring-data-neo4j