SSH的配置文件【部分】
---------spring 中配置hibernateTemplate模板:
<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
<propertyname="sessionFactory">
<refbean="sessionFactory"></ref>
</property>
</bean>---------spring中配置实现类:
<beanid="productdaoimpl"class="org.henry.shop.dao.impl.ProductDAOImpl">
<propertyname="hibernateTemplate">
<refbean="hibernateTemplate"></ref>
</property>
</bean>-----------struts-config.xml中需要添加的配置
<controller
processorclass="org.springframework.web.struts.DelegatingRequestProcessor">
</controller><message-resources parameter="org.***" />
<plug-in
classname="org.springframework.web.struts.ContextLoaderPlugIn">
<set-propertyproperty="contextConfigLocation"
value="/WEB-INF/classes/applicationContext.xml"/>
</plug-in>---------web.xml中需要添加的配置
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/classes/applicationContext.xml
</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>并修改jar文件,将common-pool.jar加入工程,并将asm-2.2.3.jar删除