天天看點

org.hibernate.HibernateException: Unable to make JDBC Connection

部分錯誤日志:

java.lang.UnsupportedOperationException: The application must supply JDBC connections
<property name="connection.urls">jdbc:mysql:///hibernate</property>
org.hibernate.HibernateException: Unable to make JDBC Connection [jdbc:mysql6:///hibernate]
<property name="connection.url">jdbc:mysql:///hibernate</property>
           

像這種錯誤主要是jdbc的url設定錯誤,如果是遠端的話,可以按照下面這樣寫,是本地的話,直接把ip位址改為127.0.0.0.1即可

<property name="hibernate.connection.url">jdbc:mysql://47.981.184.180:3306/zhibo?useUnicode=true&amp;characterEncoding=UTF-8</property>
           
org.hibernate.HibernateException: Unable to make JDBC Connection

個人網站:http://xudailong.cc

關注「蛇崽網盤教程資源」公衆号 ,在微信背景回複「領取資源」,擷取IT資源200G幹貨大全。

更多資源請通路:

超詳細圖文搭建個人免費部落格

關注「蛇崽網盤教程資源」公衆号 ,在微信背景回複「領取資源」,擷取IT資源200G幹貨大全。

在微信背景回複「130個小程式」,即可免費領取享有導入就能跑的微信小程式

org.hibernate.HibernateException: Unable to make JDBC Connection