Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的 java bean 上使用 AspectJ,我最终将在 JSP 中使用它。
任何人都可以引导我这样做吗?因为我真的不能成功,即使事情看起来微不足道!
此外,tomcat 告诉我 org.aspectj.lang.NoAspectBoundException
提前致谢!
嘿,我设法解决了!
按照本教程 forums.sun.com/thread.jspa?threadID=5401681/
...对于新手(像我一样)很重要,您必须声明 aop.xml,通过右键单击您的项目下拉 AspectJ-Build 并在您的类路径中添加 aop.xml(运行配置)你必须添加 aspectjrt.jar 这应该可以工作!