为什么Spring老是AbstractApplicationContext prepareRefresh

mikerui 2010-01-23 04:00:16
我开发了目前的一个项目,是个Dynamic Web Project(Java),
可是都配置后,我在写Service, 不需要启动Tomcat等部署的Server,所以写的那些Service基本上run application就可以看到结果,平日都是这样的,可今天,也没有错,就是每次run时,日志都会显示启动spring加载、读取配置文件一次....shit! 大家帮我看看如何,可以一次加载,不再显示.....

2010-1-23 15:02:14 org.springframework.context.support.AbstractApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1a2961b: display name [org.springframework.context.support.ClassPathXmlApplicationContext@1a2961b]; startup date [Sat Jan 23 15:02:14 CST 2010]; root of context hierarchy
2010-1-23 15:02:14 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [config/spring-datasource.xml]
2010-1-23 15:02:14 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [config/spring-dao.xml]
2010-1-23 15:02:14 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [config/spring-service.xml]
2010-1-23 15:02:14 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
信息: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@1a2961b]: org.springframework.beans.factory.support.DefaultListableBeanFactory@111a775
2010-1-23 15:02:14 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
信息: Loading properties file from class path resource [config/aiptl.properties]
2010-1-23 15:02:14 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@111a775: defining beans [placeholderConfig,dataSource,transactionManager,sqlMapClient,baseTxProxy,PtlPagegroupDAO,PageGroupService]; root of factory hierarchy
2010-1-23 15:02:14 org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
信息: Loaded JDBC driver: com.ibm.db2.jcc.DB2Driver
...全文
647 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
JavaAlpha 2010-01-23
  • 打赏
  • 举报
回复
xielittle 2010-01-23
  • 打赏
  • 举报
回复
你包含Spring的配置文件了吧,然后进入死循环

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧