博客
关于我
SpringBoot中引入ojbc6
阅读量:370 次
发布时间:2019-03-04

本文共 497 字,大约阅读时间需要 1 分钟。

引入OJDBC6驱动

1. 下载OJDBC6驱动文件

将OJDBC6 11.2.0.4 的JAR文件下载到合适的路径(例如:D:\zip\ojdbc6-11.2.0.4.jar,路径可根据实际需求调整)。

2. 安装JAR文件到Maven仓库

使用以下命令将JAR文件安装到Maven仓库:

mvn install:install-file -Dfile=D:/zip/ojdbc6-11.2.0.4.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.4 -Dpackaging=jar -DgeneratePom=true

3. 在Maven项目中添加依赖

在项目的pom.xml文件中添加如下依赖:

com.oracle.database.jdbc
ojdbc6
11.2.0.4

以上步骤将帮助您成功引入并配置Oracle JDBC驱动(OJDBC6),确保您的项目能够正常连接到Oracle数据库。

转载地址:http://llfg.baihongyu.com/

你可能感兴趣的文章
Python Soc网络分析:通过使用函数迭代列表来计算机会网络
查看>>
Python SQL和NoSQL数据库操作实战
查看>>
python stdout flush_sys.stdout.flush()方法的用法
查看>>
python string 运算
查看>>
Python str与bytes之间的转换
查看>>
Python subprocess ffmpeg
查看>>
python subprocess Permission denied Errno 13
查看>>
Python subprocess.call - 将变量添加到 subprocess.call
查看>>
Python Subprocess.Popen 从一个线程
查看>>
Python subprocess.Popen 作为 Windows 上的不同用户
查看>>
Python subprocess.Popen() 等待完成
查看>>
Python Sympy模块NoConversion:收敛到根失败;请尝试n<;15或MaxSteps>;50
查看>>
python time模块
查看>>
Python Tkinter Multiple Windows 教程
查看>>
Python tkinter 中的多处理
查看>>
Python tweepy写入到sqlite3 db
查看>>
Python TypeError:格式字符串的参数不足
查看>>
Python UI自动化测试Page Objects企业级实战
查看>>
python谷歌翻译,2021年9月10日亲测可用,一次可以翻译十万,强烈star
查看>>
Python UI自动化测试数据驱动实战
查看>>