@Pointcut("execution(* com.mybatistest.entity.Base.init(..))")
public void before() {
}
切点配置到父类base的具体一个方法
public class Base {
public void init(){
System.err.println("++_+_+_+_+_+_+_+_+_");
}
} 这个父类里的方法
@RestController
@RequestMapping(value = "/biz")
public class MybatisTestController extends Base {
@RequestMapping(value = "/top/test",method = RequestMethod.POST)
public String get(@RequestParam(value = "d",defaultValue = "cc",required = false) String value){
return "ceshi";
}
}
子类继承了父类
页面访问子类的controller路径 /biz/top/test时 aop能否拦截到