spring-projects/spring-framework — pull request #380 by bclozel (2013-10-08 16:48:28+00:00)
Title: Add base package name support on @ControllerAdvice

Prior to this commit, @ControllerAdvice annotated beans would
assist all known Controllers, by applying @ExceptionHandler,
@InitBinder, and @ModelAttribute.

This commit updates the @ControllerAdvice annotation,
which accepts now base package names as values,
e.g. @ControllerAdvice("org.my.pkg").

If values are set, only Controllers that belong to those
base packages will be assisted by the annotated class.
This commit does not change the default behavior when
no value is set, i.e. @ControllerAdvice().

Issue: SPR-10222