Spring MVC 3.0 - Service layer using annonations
问题 In my Spring MVC application with a single Controller class, @Controller public class MyController { @RequestMapping(method = RequestMethod.POST, value = "/*.htm") public myMethod{@RequestBody final MyRequestBean myRequest} } My input is in the form of JSON and I use Jackson for converting it to Java object. Now, based on the property in the Java object, I want to send to appropriate service class. If it is, myRequest.value == "1" -> FirstService myRequest.value == "2" -> SecondService All