hibernate Connections could not be acquired from the underlying database!

今天Hibernate鏈接oracle出現了錯誤 java

java.sql.SQLException: Connections could not be acquired from the underlying database!sql

 

由於數據庫在本機個人url是這樣寫的:數據庫

jdbc:oracle:thin:@127.0.0.1:1521:XEoracle

後來我查看了ui

XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = debian-server)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )

我把鏈接數據庫的url改成了:jdbc:oracle:thin:@debian-server:1521:XE,這樣問題解決了。url

相關文章
相關標籤/搜索