If you are using Spring 3.2 or later you can use the new @ControllerAdvice annotation. From the documentation of @ModelAttribute:
@ModelAttribute methods can also be defined in an @ControllerAdvice-annotated class and such methods apply to all controllers. The @ControllerAdvice annotation is a component annotation allowing implementation classes to be autodetected through classpath scanning.
In your case, I guess it would look something like:
@ControllerAdvice
public class GlobalControllerAdvice {
@ModelAttribute("loginModel")
public LoginDTO loginModel() {
return new LoginDTO();
}
}