关键配置如下:
<property name=
"hibernateProperties">
<props>
<prop key= "hibernate.query.factory_class">
org.hibernate.hql.classic.ClassicQueryTranslatorFactory
</prop>
<prop key= "hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key= "hibernate.show_sql"> false</prop>
</props>
</property>
<props>
<prop key= "hibernate.query.factory_class">
org.hibernate.hql.classic.ClassicQueryTranslatorFactory
</prop>
<prop key= "hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key= "hibernate.show_sql"> false</prop>
</props>
</property>
转载于:https://blog.51cto.com/jeoff/200185