阅读背景:

SpringMVC(六)POJO类作为 @RequestMapping方法的参数

来源:互联网 

Command or form objects to bind request parameters to bean properties (via setters) or directly to fields, with customizable type conversion, depending on @InitBinder methods and/or the HandlerAdapter configuration. See the webBindingInitializer property on RequestMappingHandlerAdapter. Such command objects along with their validation results will be exposed as model attributes by default, using the command class class name - e.g. model attribute "orderAddress" for a command object of type "some.package.OrderAddress". The ModelAttribute annotation can be used on a method argument to customize the model attribute name used.Command or form objects to bind request paramet




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: