Date date = new Date();
DateFormat df = DateFormat.getDateTimeInstance();//可以精确到时分秒
df.format(date);
<property name="hibernateProperties">
<value>
hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
hibernate.show_sql=true
</value>
</property>