(* com.evan.crm.service.*.*(..))中几个通配符的含义: 


|第一个 * —— 通配 随便率性返回值类型| 
|第二个 * —— 通配包com.evan.crm.service下的随便率性class| 
|第三个 * —— 通配包com.evan.crm.service下的随便率性class的随便率性办法| 
|第四个 .. —— 通配 办法可以有0个或多个参数| 


 

 

<!-- 配置那些类的方法进行事务管理 --> 
<aop:config> 
<aop:pointcut />
<aop:advisor advice-ref="txAdvice" pointcut-ref="allServiceMethod" /> 
</aop:config> 

还有一个 
execution (* com.cms.art.service.*.*(..))" 

要怎么写?

可以这样写:将execution分开写。 
<aop:config> 
<aop:pointcut />
<aop:advisor advice-ref="txAdvice" pointcut-ref="allServiceMethod" /> 
</aop:config> 


例如:

<!-- Hibernate 事务控制配置 -->
<bean ></aop:config>

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章:

  • 2021-05-26
  • 2021-11-27
  • 2022-01-21
  • 2021-12-01
  • 2021-11-01
  • 2021-05-22
  • 2022-01-10
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2021-08-23
  • 2021-11-15
  • 2021-07-20
  • 2021-05-29
  • 2021-06-10
  • 2021-07-22
相关资源
相似解决方案