How to attach a pointcut to a to a method of class residing inside a .jar file using command line?
问题 I am new to AOP . I have created a class in HookShow.java file: public class HookShow { void show(String msg) { System.out.println("In show :"+msg); } public static void main(String[] args) { HookShow cm=new HookShow(); cm.show("called from main method"); } } then i compiled it and added the generated .class file into .jar file using : jar cf HSHOW.jar HookShow.class Now i have a HSHOW.jar. Now i am creating an aspect that has a pointcut which is executed on the call of show() . But i dont