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

后端 未结 15 1716
悲&欢浪女
悲&欢浪女 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条回答
  •  盖世英雄少女心
    2020-12-16 11:32

    The database connection is missing. Add to your hibernate.cfg.xml file a lines like this

    com.mysql.jdbc.Driver
    
        jdbc:mysql://localhost:3306/your_database
    
    your_user
    your_password
    

    (replace localhost if the database is not installed on your computer, and set the values beginning with your_ in my example).

提交回复
热议问题