数据库dataTime 对应着java 的 java.sql.Timestamp Date date = new Date(); Timestamp date = new Timestamp(date.getTime);