您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MyAspect.java 392B

12345678910111213141516171819
  1. package mypackage;
  2. public aspect MyAspect {
  3. pointcut executeMethod(): within(TestClass) && execution(* *(..));
  4. before(): executeMethod() {
  5. System.out.println("Enter "+thisJoinPointStaticPart);
  6. }
  7. after(): executeMethod() {
  8. System.out.println("Leave "+thisJoinPointStaticPart);
  9. }
  10. }
  11. class TestClass {
  12. public static void main(String[] args) { }
  13. }