Spring框架中的命令对象是什么 [英] what is the command object in spring framework

查看:122
本文介绍了Spring框架中的命令对象是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能否举例说明弹簧框架中的命令对象?

Could you please explain about command object in spring frame work with an example?

推荐答案

:

  • Command Object-一个JavaBean,将使用您表单中的数据填充
  • Command Object - a JavaBean which will be populated with the data from your forms

Command Object视为POJO/JavaBean/etc ..,它支持表示层中的表单.

Think of Command Object as a POJO/JavaBean/etc.. that backs the form in your presentation layer.

提交表单后,所有单个属性都将映射/绑定到该对象.在演示之前,Command Object属性可用于预先/填充表单.

Once the form is submitted, all the individual attributes are mapped/bound to this object. On the way up to presentation, Command Object properties may be used to pre/populate the form.

此处

这篇关于Spring框架中的命令对象是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆