myEclipse 6.5 spring配置
来源:互联网 发布:nginx配置虚拟主机 编辑:程序博客网 时间:2024/06/06 13:55
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="configLocation"
value="classpath:hibernate.cfg.xml">
</property>
</bean>
<!-- 定义HibernateTemplate -->
<bean name="hibernateTemplate"
class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="tUserService"
class="com.cszh.UserService.TUserServiceImpl">
<property name="hibernateTemplate">
<ref bean="hibernateTemplate" />
</property>
</bean>
<bean name="/login" class="com.cszh.UserAction.LoginAction">
<property name="service">
<ref bean="tUserService" />
</property>
</bean>
<!--配置事务管理器 -->
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="configLocation"
value="classpath:hibernate.cfg.xml">
</property>
</bean>
<!-- 定义HibernateTemplate -->
<bean name="hibernateTemplate"
class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="tUserService"
class="com.cszh.UserService.TUserServiceImpl">
<property name="hibernateTemplate">
<ref bean="hibernateTemplate" />
</property>
</bean>
<bean name="/login" class="com.cszh.UserAction.LoginAction">
<property name="service">
<ref bean="tUserService" />
</property>
</bean>
<!--配置事务管理器 -->
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
</beans>
0 0
- myEclipse 6.5 spring配置
- myeclipse中配置spring
- myeclipse配置spring
- Spring myeclipse配置
- MyEclipse配置struts+hibernate+spring
- MyEclipse配置struts+hibernate+spring
- myEclipse struct2+spring+hibernate配置
- 图解MyEclipse配置struts+hibernate+spring+FreeMarker
- 图解MyEclipse配置struts+hibernate+spring+FreeMarker
- 图解MyEclipse配置struts+hibernate+spring+FreeMarker
- 图解MyEclipse配置struts+hibernate+spring
- 图解MyEclipse配置struts+hibernate+spring+FreeMarker
- 图解MyEclipse配置struts+hibernate+spring
- 图解MyEclipse配置struts+hibernate+spring
- 图解MyEclipse配置struts+hibernate+spring
- 图解MyEclipse配置struts+hibernate+spring+FreeMarker
- 图解MyEclipse配置struts+hibernate+spring+FreeMarker
- Myeclipse+struts2.0.11+hibernate+spring配置
- 写自己的代码之js粗浅框架笔记
- web前端开发精华
- CCNA实验—静态路由
- 60款很酷的jQuery幻灯片
- Geek!Begin!
- myEclipse 6.5 spring配置
- ssh 配置
- CCNA实验—RIP
- CCNA实验—EIGRP
- 写自己的代码之Ext/js学习笔记
- CCNA实验—OSPF
- CCNA实验—PPP
- 磁盘管理之三
- 最长连续和与最大子矩阵