开发者

Direct field access in Spring MVC 3

I would like to use direct field access for "command objects" in Spring MVC 3.

Is there an equivalent of useDirectFieldAccess() method for annotated controllers?

I开发者_开发知识库 wasn't able to find anything in the documentation.


You can use the @InitBinder annotation on a controller method, and then initDirectFieldAccess on the recived WebDataBinder, documentation is here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜