SSH中使用new Date()造成oracle date类型时分秒精准度丢失
时间:2015-04-21 12:50:47
收藏:0
阅读:254
解决方法:
在实体类与其对应的实体类的xml文件的类型都改了java.sql.Timestamp
private java.sql.Timestamp meetingdate;
<property name="meetingdate" type="timestamp">
<column name="MEETINGDATE" length="7"/>
</property>
Action里面的属性类型也改为java.sql.Timestamp
private java.sql.Timestamp meetingdate;
原文:http://www.cnblogs.com/cbyniypeu/p/4443945.html
评论(0)