数据库的hibernate方言错误
不同数据库方言不同
这是mysql的方言
org.hibernate.dialect.MySQLDialect
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
这个错误是因为没有设置hibernate的“方言”导致的,hibernate访问不同的数据库,如mysql,oralce使用的方言是不一样的,而且必须要显示地(explicitly)设置。
建议解决方案:
首先确定当前使用的数据库类型;
然后找到对应于数据库的hibernate方言;
最后显示设置方言。
如果还有什么不明白,请回复。