在Maven项目中添加Oracle的驱动及配置POM文档

xiaoxiao2021-02-28  40

在Oracle安装目录下查找Oracle JDBC Driver ;例如:D:\Oracle\product\11.2.0\dbhome_1\jdbc\lib ;WIN+R启动控制台,切换至D:\Oracle\product\11.2.0\dbhome_1\jdbc\lib ;运行:mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=ojdbc6.jar在pom.xml中添加:<dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0.1.0</version> </dependency>
转载请注明原文地址: https://www.6miu.com/read-2250020.html

最新回复(0)