oracle Java链接

下载地址  http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html

用的jdk8  就下载哪个ojdbc8.jar的那个包

2 打成maven依赖

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3.0 -Dpackaging=jar -Dfile=E:oracle-libojdbc6-11.2.0.3.jar

3 配置文件添加

spring.datasource.url=jdbc:oracle:thin:@localhost:1521:wangchao
spring.datasource.username=wangchao
spring.datasource.password=123512qingQQ
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver