Generally, adding ojdbc6 database driver to springboot will report an error, and the dependency cannot be added. The reason is that the ojdbc6 database driver is charged and cannot be downloaded directly through Maven. You need to download ojdbc6.jar manually and add it to your own warehouse manually
The first step is to download the jar package of ojdbc6
https://mvnrepository.com/artifact/com.oracle/ojdbc6/11.2.0.3
Select jar to download it
Step 2 rename ojdbc6 the downloaded jar and put it in the directory of the C disk user
Step 3 open the CMD window from this directory
Execute command
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar -Dfile=ojdbc6.jar
Add it to your Maven
This indicates that the addition was successful
Step 4 go to your own warehouse to check
The jar package has been added
If you just add a dependency, you won’t report an error
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.3</version>
</dependency>
Similar Posts:
- [Solved] Missing artifact com. oracle:ojdbc6 : jar:11.2.0.1.0 Problem solving ojdbc package pom.xml error
- springboot Cannot load driver class: oracle.jdbc.driver.OracleDriver
- How to Solve idea Import ojdbc Pack Error
- [Solved] Maven project startup error {datasource-1} init error
- [Solved] Jsonobject has no from object, idea has no Maven dependency, jsonobject Maven dependency package
- Pom.xml add dependency error [How to Solve]
- [Solved] SparkSQL Error: org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism
- Maven warnning: ‘build.plugins.plugin.version’ is missing [How to Solve]
- Hibernate Exception: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
- [Solved] Springboot integrate swagger Error: failed to start bean ‘documentationpluginsboot