if the AspectJ is applied on pojo Java:
then I can capture methods like A.set(User user).Code:public aspect test { pointcut controlling(User u): execution(* *(User,..)) && args(u); before(User u):controlling(u){ } }
but if I want capture the methods in controllers:
then nothing is matched. actualy in controller there are methods like:Code:public aspect test{ pointcut controlling(User u): execution(* *(@ModelAttribute User,..)) && args(u); before(User u):controlling(u){ } }
where is the problem?Code:@RequestMapping(value = "register", method = RequestMethod.POST) public String processRegisterSubmit(@ModelAttribute User user, BindingResult result, SessionStatus status, Model model) { }


Reply With Quote
