Connection cannot be null when 'hibernate.dialect' not set

后端 未结 15 1694
悲&欢浪女
悲&欢浪女 2020-12-16 11:12

having more issues with seting up hibernate with spring3. this time it is saying that connection is nul as the dialect is not set which it is on my hibernate.cfg.xml file.

15条回答
  •  萌比男神i
    2020-12-16 11:30

    I had the same problem. Switching from the Apache Commons DataSource:

    
        
        
        
        
    
    

    To C3P0:

    
        
        
        
        
    
    

    made my problem go away. Maybe someone can explain why, I am just happy it works and wanna share what little I know :)

提交回复
热议问题