I’m trying to learn Spring MVC from Spring In Action 2nd Edition (Covers Spring 2.0).
My IDE tells me that AbstractCommandController has been deprecated. Has it been replaced? What is the recommended way of handling cases for which one would have extended AbstractCommandController?
As of Spring 3.0, the entire
Controllerhierarchy has been deprecated and replaced by the annotation-style of controllers. This makes things considerably simpler, you no longer have to worry about which of the various base classes to extend.In fact, you won’t even find mention of the old hierarchy in the Spring reference manual any more, just the new annotation-style.
Annotated controllers perform the same functionality as
AbstractCommandControllerby simple auto-binding of method parameters, e.g.