首页 > 代码库 > 'hibernate.dialect' must be set when no Connection available

'hibernate.dialect' must be set when no Connection available

今天碰到的这个问题,很无厘头,网上搜索了很多,都不靠谱,还是靠自己

解决方法是在hibernate.cfg.xml中添加

<property name="dialect">
org.hibernate.dialect.MySQLInnoDBDialect
</property>

'hibernate.dialect' must be set when no Connection available