Oracle JDBC驱动由于受权问题,没有放到Maven的中央仓库里面,固然了,阿里云的镜像也没有了。因此要从Oracle官网下载驱动:oracle
注意下载ojdbc6.jar 由于这个JDK1.8才能用。 我这边的开发环境是JDK1.8.阿里云
运行如下命令把jar安装到本地的Maven仓库中:spa
mvn install:install-file -Dfile=[下载后的ojdbc6.jar的文件路径] -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar.net
再pom.xml中写下坐标系:code
<dependency> <groupid>com.oracle</groupid> <artifactid>ojdbc6</artifactid> <version>11.2.0.3.0</version> </dependency>
references:xml
https://blog.csdn.net/dcx903170332/article/details/72730305blog
https://www.jianshu.com/p/492c8a9a0118开发
https://blog.csdn.net/sanluo11/article/details/54599693io
https://blog.csdn.net/qq_23974323/article/details/78065181class