springboot连接oracle

2022-08-21 13:05:21 浏览数 (1)

首先引入GAV

代码语言:javascript复制
<dependency>
    <groupId>org.zenframework.z8.dependencies.commons</groupId>
    <artifactId>ojdbc6</artifactId>
    <version>2.0</version>
</dependency>

然后修改applicationurl和驱动

代码语言:javascript复制
datasource:
	driver-class-name: oracle.jdbc.OracleDriver
	url: jdbc:oracle:thin:@localhost:1521/数据库名
url

0 人点赞