advise controller method *before* @Valid annotation is handled

前端 未结 2 739
孤城傲影
孤城傲影 2021-01-14 22:15

I am adding rate-limiting to a restful webservice using Spring MVC 4.1.

I created a @RateLimited annotation that I can apply to controller methods. A S

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-14 22:53

    See if it's feasible for you to implement similar logic for @@AfterThrowing advice as well which will have similar pointcut.

提交回复
热议问题