开发者学堂课程【Java Web 开发系列课程:Spring 框架入门:声明式事务】学习笔记,与课程紧密联系,让用户快速学习知识。
课程地址:https://developer.aliyun.com/learning/course/538/detail/7350
声明式事务
内容简介:
一、声明式事务管理
二、声明式事务配置
一、声明式事务管理
xmlns;xsi="http://www.w3.org/2001/XMLSchema-instance' xmIns.aop="http://www.springframework.org/schema/aop xmInsitx="http://www.springframevork.org/schema/tx" xsi:schemaLocation=
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd">
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
value="com.mysal.jdbc.Driver"/>
value="jdbc:mysql://localhost:3306/test"/>
an>
二、声明式事务配置
class="org.springframework.jdbc.datasource.DataSourceTransactionM anager">
c
onfig>
p
ointsut expressions"execution( cn.sxst.dao,impl.
*
.*(..))"id="po
n
intc
u
t"/>
v
isor advice-ref="txadvice"
Po
intcut-ref="pointcut"/>
结束
-->