NutzCN Logo
问答 aop排除某些类不拦截
发布于 2415天前 作者 qq_f55c6d47 1931 次浏览 复制 上一个帖子 下一个帖子
标签:

aop怎么排除某些类不拦截

6 回复

指js里面??

是的
var aop = {
log : {
type : 'com.common.aop.LogInterceptor'
},
$aop : {
type : 'org.nutz.ioc.aop.config.impl.JsonAopConfigration',
fields : {
itemList : [
['com.hfits.modules.+Action', '.+', 'ioc:log']
]
}
}
};

上面是我的aop配置

继承JsonAopConfigration, 覆盖其getInterceptorPairList, 自定义一下

好的!我来试下,谢谢!

继承JsonAopConfigration, 覆盖其getInterceptorPairList,该方法里有个私有属性aopItemList

添加回复
请先登陆
回到顶部