Hibernate5 HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections

天涯浪子 提交于 2019-12-05 07:22:27
Ahmad Merghany

You may have found a way to sort it out, but you could try this. I had a similar issue that took me some time, later I found that I had left out an important statement in my configuration.

Configuration cfg = new Configuration()
                       .**setProperties(database)**
                       .addPackage("com.demo.pojo")
                       .addAnnotatedClass(User.class)
                       .addAnnotatedClass(Products.class);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!