@At("/saveStudent")
//@Aop("validationInterceptor")
public Messages saveStudent(@Param("age")int age,@Param("..")Student student, Errors es) {
return studentService.addStudent(student,es);
}
15 回复
@Filters(@By(type=EnterFilter.class, args= {"ioc:enterFilter"}))
public class EnterFilter implements ActionFilter{
public View match(ActionContext actionContext) {
HttpServletRequest request = actionContext.getRequest();
String paramStr = request.getQueryString();
return null;
}
写了个filter,能拿到所有参数,但怎么拿到public Messages saveStudent(@Param("age")int age,@Param("..")Student student, Errors es) {} 这个方法的参数类型;拿到比较参数类型
添加回复
请先登陆