<aop:aspectj-autoproxy />
<!-- 定义切面 -->
<bean id="logAspect" class="com.admin.TransactionAspect"></bean>
<!-- aop相关的配置和说明 -->
<aop:config>
<!-- 定义相关的切面 -->
<aop:aspect ref="logAspect">
<!-- 定义切入点 -->
<aop:pointcut expression="execution(* com.admin.web..*.*(..))" id="transactionPointCut"/>
<aop:before pointcut-ref="transactionPointCut" method="beginTransaction"/>
<aop:after pointcut-ref="transactionPointCut" method="CommitTransaction"/>
<aop:after-throwing pointcut-ref="transactionPointCut" method="rollBackTransaction"/>
</aop:aspect>
<!-- 定义切面 -->
<bean id="logAspect" class="com.admin.TransactionAspect"></bean>
<!-- aop相关的配置和说明 -->
<aop:config>
<!-- 定义相关的切面 -->
<aop:aspect ref="logAspect">
<!-- 定义切入点 -->
<aop:pointcut expression="execution(* com.admin.web..*.*(..))" id="transactionPointCut"/>
<aop:before pointcut-ref="transactionPointCut" method="beginTransaction"/>
<aop:after pointcut-ref="transactionPointCut" method="CommitTransaction"/>
<aop:after-throwing pointcut-ref="transactionPointCut" method="rollBackTransaction"/>
</aop:aspect>
</aop:config>
解决办法
把上面红色的删除就可以了。