锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品yjizz视频网,97人人爽人人澡人人精品,欧美一区二区在线不卡http://www.aygfsteel.com/vooctj/category/50556.htmlzh-cnWed, 02 Jan 2013 16:47:29 GMTWed, 02 Jan 2013 16:47:29 GMT60spring 鍜宧ibernate 甯歌閰嶇疆http://www.aygfsteel.com/vooctj/articles/393042.htmlvooctjvooctjSat, 15 Dec 2012 09:24:00 GMThttp://www.aygfsteel.com/vooctj/articles/393042.htmlhttp://www.aygfsteel.com/vooctj/comments/393042.htmlhttp://www.aygfsteel.com/vooctj/articles/393042.html#Feedback0http://www.aygfsteel.com/vooctj/comments/commentRss/393042.htmlhttp://www.aygfsteel.com/vooctj/services/trackbacks/393042.html
applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                           http://www.springframework.org/schema/aop 
                           http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
                           http://www.springframework.org/schema/context 
                           http://www.springframework.org/schema/context/spring-context-2.5.xsd
                           http://www.springframework.org/schema/tx 
                           http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<!-- transactionManager -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<!-- advice -->
<tx:advice id="tx" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="save*"  isolation="DEFAULT" propagation="REQUIRED" read-only="false"/>
</tx:attributes>
</tx:advice>
<!-- sessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation" value="classpath:hibernate/hibernate.cfg.xml">
</property>
</bean>
<!-- aop  -->
<aop:config>
<aop:pointcut expression="execution(* com.vooctj.service.impl.*.*(..))" id="perfom"/>
<aop:advisor advice-ref="tx" pointcut-ref="perfom"/>
</aop:config>
<!-- entity studentDAO -->
<bean id="studentDAO" class="com.vooctj.dao.impl.StudentDAOImpl">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<!-- entity studentService-->
<bean id="studentService" class="com.vooctj.service.impl.StudentServiceImpl">
<property name="studentDAO">
<ref bean="studentDAO"/>
</property>
</bean>
</beans>


vooctj 2012-12-15 17:24 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 乌兰察布市| 镇赉县| 长兴县| 古丈县| 保康县| 静安区| 鹤山市| 太谷县| 正镶白旗| 宜黄县| 南靖县| 江西省| 德兴市| 苍山县| 红安县| 金湖县| 江华| 呼和浩特市| 卓资县| 河西区| 堆龙德庆县| 江北区| 自贡市| 普陀区| 恩平市| 河曲县| 兴山县| 中西区| 漳浦县| 新化县| 保山市| 徐州市| 惠东县| 察隅县| 无极县| 铁岭县| 龙川县| 泌阳县| 株洲市| 惠州市| 曲阜市|