spring - 这些 Spring 调试消息是什么意思?

标签 spring messages spring-jdbc

我在我的独立 Java 应用程序中使用 Spring IoC。当应用程序启动时,它会创建一个包含启动信息的日志。有些消息我不明白,请帮助我理解它们并解释如果必须修复它们如何修复它们?我也很好奇:由于这些消息,我的应用程序稳定性是否有任何危险?

吓到我的消息以“无法”一词开头。目前该应用程序运行良好。

INFO - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@52cc95d: startup date     [Thu Jun 02 16:02:12 MSD 2011]; root of context hierarchy
INFO - Loading XML bean definitions from class path resource [application-config.xml]
DEBUG - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
DEBUG - Loading schema mappings from [META-INF/spring.schemas]
DEBUG - Loaded schema mappings: {http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd}
DEBUG - Loading bean definitions
DEBUG - Loaded 3 bean definitions from location pattern [application-config.xml]
DEBUG - Bean factory for org.springframework.context.support.ClassPathXmlApplicationContext@52cc95d: org.springframework.beans.factory.support.DefaultListableBeanFactory@33aae94f: defining beans [propertyPlaceholderConfigurer,dbWorker,connectionPool]; root of factory hierarchy
DEBUG - Creating shared instance of singleton bean 'propertyPlaceholderConfigurer'
DEBUG - Creating instance of bean 'propertyPlaceholderConfigurer'
DEBUG - Eagerly caching bean 'propertyPlaceholderConfigurer' to allow for resolving potential circular references
DEBUG - Finished creating instance of bean 'propertyPlaceholderConfigurer'
INFO - Loading properties file from class path resource [config.properties]
DEBUG - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@49bdc9d8]
DEBUG - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@255d17d7]
INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@33aae94f: defining beans [propertyPlaceholderConfigurer,dbWorker,connectionPool]; root of factory hierarchy
DEBUG - Returning cached instance of singleton bean 'propertyPlaceholderConfigurer'
DEBUG - Creating shared instance of singleton bean 'dbWorker'
DEBUG - Creating instance of bean 'dbWorker'
DEBUG - Eagerly caching bean 'dbWorker' to allow for resolving potential circular references
DEBUG - Creating shared instance of singleton bean 'connectionPool'
DEBUG - Creating instance of bean 'connectionPool'
DEBUG - Eagerly caching bean 'connectionPool' to allow for resolving potential circular references
DEBUG - Finished creating instance of bean 'connectionPool'
DEBUG - Finished creating instance of bean 'dbWorker'
DEBUG - Returning cached instance of singleton bean 'connectionPool'
DEBUG - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@4b1c2b67]
DEBUG - Returning cached instance of singleton bean 'lifecycleProcessor'

最佳答案

这只是您可能不需要的调试级别输出。从本质上讲,它告诉您尚未定义任何覆盖其默认功能的特定类,因此它将使用默认功能。这里没有什么可担心的。

关于spring - 这些 Spring 调试消息是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6214389/

相关文章:

java - 线程 "main"java.lang.NoClassDefFoundError : org/springframework/boot/SpringApplication 中的异常

spring - 寻找一个基于 spring 3.x 的轻量级 CMS/博客引擎

JavaMailSender 失败 : javax. mail.internet.ParseException:缺少 '"'

Spring Cloud RefreshScope 刷新后 Hook

ruby - 在 Ruby 中构建长字符串的简洁方法

java - JdbcTemplate.queryforList() 返回值但 map.get 返回 null

java - PSQL异常 : This connection has been closed - Spring Boot + AWS RDS + Postgres

java - 一段时间后数据库查询挂起

objective-c - 来自 xmpp ios 的未读消息数

c# - 检测到 CallbackOnCollectedDelegate