I would like to know what added advantage does Spring provide when it comes up with annotations like @Controller? Would the framework not have to search for all such files in the application to scan for the request mapping?
Rather the previous version seemed to be better wherein for the request mapping there was a specific bean assigned to it.
Also there were predefined lifecycle methods like handlRequest etc which returned the ModelAndView object, i see that now we can define a method and return String?
Using the above, can this be configured in the xml? i.e. can i say to the container that a particular method needs to be called for a particular request mapping using xml config?
Can someone please help understand the advantages of Spring 2.5 + over the previous versions?