I need to migrate a Spring web application to annotation.
It is using SimpleUrlHandlerMapping + ParameterMethodNameResolver, so url will be /myjob.do?cmd=addNew . what is the easiest way to convert it to Annotation ? is it something like this ?
@RequestMapping("/myjob.do?cmd=addNew")
public ModelAndView addNew(....) throws Exception {
}
thanks
Assuming you have more than one cmd value: