问题描述
弹簧组件
@Component
public class Component {
public String service(){
return new SubClass(arg1,arg2);
}
}
Spring AOP 方面
@Component
@Aspect
public class Logger{
@Around("excution(* Component.*(..))")
public Object service(ProceedingJoinPoint joinPoint) throws Throwable {
// to-do
}
}
Spring context.xml
<context:component-scan base-package="kr.co.vpay.tr"></context:component-scan>
<aop:aspectj-autoproxy proxy-target-class="true" />
我想创建子类作为代理,在组件创建后调用 service() 时
怎么办?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)