现在的位置: 首页 > 综合 > 正文

的使用

2013年02月04日 ⁄ 综合 ⁄ 共 195字 ⁄ 字号 评论关闭

<bean:write>的使用时候,如果需要格式化,可以采用以下方式

<bean:write  name="dataBean" property="modDate" formatKey="global.formatDateTime"/>

 

MessageResources.properties中定义一下message

global.formatDateTime=yyyy/MM/dd/ HH:mm:ss

抱歉!评论已关闭.