博客
关于我
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/

你可能感兴趣的文章
TCP基本入门-简单认识一下什么是TCP
查看>>
tableviewcell 中使用autolayout自适应高度
查看>>
Orcale表被锁
查看>>
svn访问报错500
查看>>
org.apache.ibatis.exceptions.PersistenceException:
查看>>
org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned
查看>>
org.apache.ibatis.type.TypeException: Could not resolve type alias 'xxxx'异常
查看>>
org.apache.poi.hssf.util.Region
查看>>
org.apache.xmlbeans.XmlOptions.setEntityExpansionLimit(I)Lorg/apache/xmlbeans/XmlOptions;
查看>>
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
查看>>
org.hibernate.HibernateException: Unable to get the default Bean Validation factory
查看>>
org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
查看>>
SQL-CLR 类型映射 (LINQ to SQL)
查看>>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
查看>>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
查看>>
org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded
查看>>
org.tinygroup.serviceprocessor-服务处理器
查看>>
org/eclipse/jetty/server/Connector : Unsupported major.minor version 52.0
查看>>
org/hibernate/validator/internal/engine
查看>>
Orleans框架------基于Actor模型生成分布式Id
查看>>