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

相关文章
相关标签/搜索