开发者

Direct field access in Spring MVC 3

开发者 https://www.devze.com 2023-01-29 23:30 出处:网络
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 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

精彩评论

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