我想要 JSP 文件中的 AOP 顾问(Spring 3.0)
即..在JSP中 我的名字是 ${value.name}
我认为它可能会调用 value.getName() 方法。 所以我像下面这样设置 AOP...
@Around("execution(public java.lang.String a.b.c.*..get*())")
public Object changeStr(ProceedingJoinPoint p) throws throwable
{
...
}
但这不是调用...
如何在JSTL中使用AOP?
最佳答案
AFAIK 表达式语言(JSTL 使用 Java EL)使用反射,所以恕我直言,问题应该是:How to use AOP with reflection?。这是一篇关于 JBoss AOP 和反射的文章:http://docs.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/reference/en/html/reflection.html
关于java - 如何在JSTL中使用AOP?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8179947/