struts2+spring配置后bean加载,bean为什么会初始化2次

下面是我的服务器出错情况:

15:53:02,546 INFO [XmlWebApplicationContext] Bean factory for application conte
xt [org.springframework.web.context.support.XmlWebApplicationContext@18c56d]: or
g.springframework.beans.factory.support.DefaultListableBeanFactory@16921fd
15:53:03,125 INFO [PropertyPlaceholderConfigurer] Loading properties file from
ServletContext resource [/WEB-INF/hibernate.properties]
15:53:03,250 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@16921fd: de
fining beans [propertyConfigurer,messageSource,dataSource,jdbcTemplate,sessionFa
ctory,transactionManager,baseTxProxy,UserActionBean,UserDAOBean,UserHelperImplBe
an]; root of factory hierarchy
15:53:04,062 INFO [LocalSessionFactoryBean] Building new Hibernate SessionFacto
ry
AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@cbdb20)

LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 60
15:53:05,296 WARN [Configurator ] No configuration found. Configuring eh
cache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/dist/easou_
ssh/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
15:53:05,671 INFO [HibernateTransactionManager] Using DataSource [org.apache.co
mmons.dbcp.BasicDataSource@32060c] of Hibernate SessionFactory for HibernateTran
sactionManager
15:53:05,671 INFO [ContextLoader ] Root WebApplicationContext: initializa
tion completed in 4328 ms
15:53:06,281 INFO [XmlConfigurationProvider] Parsing configuration file [struts
-default.xml]
15:53:06,812 INFO [XmlConfigurationProvider] Parsing configuration file [struts
-plugin.xml]
15:53:06,843 INFO [XmlConfigurationProvider] Parsing configuration file [struts
.xml]
15:53:07,171 INFO [StrutsSpringObjectFactory] Initializing Struts-Spring integr
ation...
15:53:07,171 INFO [SpringObjectFactory ] Setting autowire strategy to name
15:53:07,171 INFO [StrutsSpringObjectFactory] [b]... initialized Struts-Spring int
egration successfully[/b]15:53:09,015 INFO [XmlConfigurationProvider] [b]Unable to verify action class [Use
rActionBean] exists at initialization[/b]15:53:09,046 INFO [ObjectTypeDeterminerFactory] Setting DefaultObjectTypeDeterm
iner as default ...
[15:53:09.484] WebApp[http://localhost:80/resin-doc] starting
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值