一、Spring
1、关于注解
<!-- 打开注解模式:扫描指定包下的注解 -->
<context:component-scan base-package="com.*"></context:component-scan>
<!-- 开启事务注解 -->
<tx:annotation-driven transaction-manager="dataSourceTransactionManager"/>
二、SpringMVC
1、springmvc执行流程
1、关于注解
<!-- 打开注解模式:扫描指定包下的注解 -->
<context:component-scan base-package="com.*"></context:component-scan>
<!-- 开启事务注解 -->
<tx:annotation-driven transaction-manager="dataSourceTransactionManager"/>
1、springmvc执行流程