多项选择题
A.public class MyInterceptor implements Interceptor {pu……
下列自定义拦截器代码语法正确的是()。
A.public class MyInterceptor implements Interceptor {public String intercept(ActionInvocation invocation)throws Exception {…}}
B.public class MyInterceptor extends AbstractInterceptor {public String intercept(ActionInvocation invocation)throws Exception {…}}
C.public class MyInterceptor implements Interceptor {public void init(){…}public String intercept(ActionInvocation invocation)throws Exception {…}}
D.public class MyInterceptor extends AbstractInterceptor {public void init(){…}public String intercept(ActionInvocation invocation)throws Exception {…}}