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

后端 未结 15 1684
悲&欢浪女
悲&欢浪女 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:15

    I you are using hibernate and InnoDB why don't you set the hibernate.dialect to org.hibernate.dialect.MySQL5 or org.hibernate.dialect.MySQL.

    and the connection property to hibernate.connection.url.

提交回复
热议问题