异常:

   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的值就要根据你的情况了

 

 解决:

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
猜你喜欢
  • 2022-01-27
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案