0
<aop:config>
<aop:aspect id="myAspect" ref="aBean">
<aop:pointcut id="businessService"
expression="execution(* com.xyz.myapp.service.*.*(..))"/>
<aop:advice............>
</aop:aspect>
当我使用上面的配置时,它将使用aspectj。我怎样才能使用Spring AOP?如何使用Spring AOP的AOP功能而不使用aspectj?
**公共对象doBesicProfiling(ProceedingJoinPoint PJP){ \t \t的System.out.println( “输入法”); \t \t Object result = pjp.proceed(); \t \t System.out.println(“exit method”); \t \t返回结果; \t} **这是我的方面和类的方法ProceedingJoinPoint是从aspectjrt.jar –
请阅读spring-aop文档http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference /html/aop.html您无法在您的配置中使用完整的aspectj语法和所有功能 –