'hibernate.dialect' must be set when no Connection avalable
异常:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection avalable
....
这个问题,神一样的bug,网上解决的方法大多是包重复,configure()
这个今天上午加昨天下午,终于搞出来了.在applicationContext.xml
中加上红线的句子,value的值就要根据你的情况了
解决: