小编Viv*_*l21的帖子

Spring AOP:排除避免切入点的最终类和枚举

我正在尝试使用Spring AOP实现Logging.我已定义了

@Pointcut("execution(* com.mycom..*(..))")
private void framework() {}

@Around("framework()")
public Object aroundAdviceFramework(ProceedingJoinPoint jp) throws Throwable {
    if (logger.isDebugEnabled())
        logger.debug("DEBUG:: {}  {}  Enter", jp.getTarget().getClass().getName(), jp.getSignature().getName());
    Object returnVal = jp.proceed(jp.getArgs());
    if (logger.isDebugEnabled())
        logger.debug("DEBUG:: {}  {}  Out", jp.getTarget().getClass().getName(), jp.getSignature().getName());
    logger.info("INFO:: " + jp.getTarget().getClass().getName() + " " + jp.getSignature().getName() + " Finished:");
    return returnVal;
}
Run Code Online (Sandbox Code Playgroud)

mycom包及其子包下有很多类.有些课程是enum和final class.因此,我得到了

nested exception is org.springframework.aop.framework.AopConfigException: 
Could not generate CGLIB subclass of class [class com.mycom.util.BancsServiceProvider]: Common causes of this problem include using a final class or a non-visible class; …
Run Code Online (Sandbox Code Playgroud)

aop spring aspectj spring-aop

5
推荐指数
1
解决办法
3661
查看次数

Oracle层次结构数据表示歧​​义

我在下面的结构中有一张桌子.

_________________________________
|| ExpObjkey   Exp1    Exp2  operator||
________________________________
    1            2        3    +
    2            4        5    +
    3            6        7    -
Run Code Online (Sandbox Code Playgroud)

我希望按以下顺序记录:
对于expObjKey = 1,我们将拥有

ExpObjKey Expression
   1       (4+5)+(6-7)      
Run Code Online (Sandbox Code Playgroud)

说明:

for ExpObjKey 1 we will have 2 +3
then 2 will have 4+5
and 3 will have 6+7.
Run Code Online (Sandbox Code Playgroud)

它更像是一个层次结构.

我已经尝试了很多可能的方法,但没有接近解决方案.

 SELECT expObjkey,  SYS_CONNECT_BY_PATH(exp1||' ' ||operator|| exp2||')', ' (  ') "Path"
 FROM bpmn_expression 
 CONNECT BY PRIOR   
 exp1=expObjkey   or exp2=expObjkey   
start with expObjkey=1
Run Code Online (Sandbox Code Playgroud)

oracle10g

2
推荐指数
1
解决办法
149
查看次数

在Ext.window中淡入/淡出

我在用

var  modalWindow = new Ext.Window({
title: "Window",
items: [
    {html: "<div id='example'>Hello</div> "}
]
});
modalWindow.show();
Run Code Online (Sandbox Code Playgroud)

打开一个模态窗口.我需要在这个窗口上显示fadein/fadeout功能.请帮忙..

extjs

2
推荐指数
1
解决办法
1491
查看次数

标签 统计

aop ×1

aspectj ×1

extjs ×1

oracle10g ×1

spring ×1

spring-aop ×1