<aop:config> <aop:aspect id="logAspect" ref="logInterceptor"> <aop:before method="before" pointcut="execution(* com.example.service.*.*(..))" /> </aop:aspect> </aop:config> public class LogInterceptor { public void before(JoinPoint joinPoint) { } } <bean id="myService" class="com.example.service.MyService" scope="prototype"> <aop:scoped-proxy/> </bean>


上一篇:
下一篇:
切换中文