之前用的都是mysql数据库,这次的项目需要用到Oracle数据库 ,在搭好环境后进行数据库连接测试时报Could not get JDBC Connection;的错误,详细错误如下:
### Cause: : Could not get JDBC Connection; nested exception is : ] with root cause
:
at (:1702)
at (:1547)
at .forName0(Native Method)
at (:264)
at (:598)
at (:817)
at (:1229)
at (:1225)
at (:90)
at (:111)
at (:77)
at (:82)
at (:68)
at (:338)
at (:84)
at (:62)
at (:326)
at (:156)
at (:109)
at (:83)
at (:148)
at (:141)
at (:77)
at .invoke0(Native Method)
at (:62)
at (:43)
at (:498)
at $(:433)
at .$(Unknown Source)
at (:166)
at (:83)
at (:59)
at .$(Unknown Source)
at (:28)
at (:28)
at .invoke0(Native Method)
at (:62)
at (:43)
at (:498)
at (:205)
at (:133)
at (:97)
at (:827)
at (:738)
at (:85)
at (:967)
at (:901)
at (:970)
at (:861)
at (:621)
at (:846)
at (:728)
at (:305)
at (:210)
at (:51)
at (:243)
at (:210)
at (:197)
at (:107)
at (:243)
at (:210)
at (:222)
at (:123)
at (:502)
at (:171)
at (:100)
at (:953)
at (:118)
at (:408)
at .http11.(:1041)
at $(:603)
at $(:310)
at (:1149)
at $(:624)
at (:748)
这次范了一个很低级的错误就是连接的时Oracle数据库,pom文件用引用的确实Mysql的驱动,已造成Could not get JDBC Connection的错误,然后在之前的项目中找到ojdbc6-0.0.的包,并通过Eclipsece添加到Maven本地仓库然后在中引用,重启就好了!