赞
踩
后置
@AfterReturning(value="@annotation(com.sdyy.biz.act.maint.aop.annotation.ResIfNull)",returning="result") public void AfterReturning(JoinPoint joinPoint , Object result) { logger.info("AfterReturning------------start"); ResIfNull myAnno= ((MethodSignature)joinPoint.getSignature()).getMethod().getAnnotation(ResIfNull.class); if ("obj".equals(myAnno.type())) { if (result == null) { throw new SysException("初始化流程失败,请定义服务流程"); } } else if ("list".equals(myAnno.type())) { if (result instanceof List) { List res = (List) result; if (res.size() == 0) { t
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。