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] ... initialized Struts-Spring int
egration successfully
15:53:09,015  INFO [XmlConfigurationProvider] Unable to verify action class [Use
rActionBean] exists at initialization
15:53:09,046  INFO [ObjectTypeDeterminerFactory] Setting DefaultObjectTypeDeterm
iner as default ...
[15:53:09.484] WebApp[http://localhost:80/resin-doc] starting

你可能感兴趣的:(spring,struts,Hiberante)