- public interface IDog {
- public void dog();
- public void run();
- }
- public class Dog implements IDog{
- public void dog(){
- System.out.println("===测试顾问==1dog()");
- }
- public void run() {
- System.out.println("====测试顾问===2run()");
- }
- }
- public class MyBefore implements MethodBeforeAdvice {
- public void before(Method method, Object[] objects, Object o) throws Throwable {
- System.out.println("======before====");
- }
- }