server.port=8090 //Tomcat服务端口号
spring.datasource.driver-class-name= oracle.jdbc.driver.OracleDriver //Oracle驱动
spring.datasource.url= jdbc:oracle:thin:@localhost:1521:orcl //jdbc连接Oracle
spring.datasource.username=hai //用户名
spring.datasource.password=123123 //密码
pom里面还需要两个注解
<!--oracle和jdbc相对应的版本号-->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc8</artifactId>
<version>11.2.0.4.0</version>
</dependency>
<!--报错不支持字符集用这个-->
<!-- https://mvnrepository.com/artifact/cn.easyproject/orai18n -->
<dependency>
<groupId>cn.easyproject</groupId>
<artifactId>orai18n</artifactId>
<version>12.1.0.2.0</version>
</dependency>