Controller Advices
By using aspects controllers can receive common configurations. This requires just annotating a class like this:
It may also define specific controllers:
This can contain global configuration through annotations such as @ExceptionHandler, @InitBinder or @ModelAttribute.
Testing
Always remember to add the required advices to MVC tests:
Last updated
Was this helpful?