zoukankan      html  css  js  c++  java
  • maven oracle jdbc jar

    1.problem describe:

      when your dependency jar about oracle use code like this:

             <!-- oracle-connector -->
            <dependency>
                <groupId>com.oracle</groupId>
                <artifactId>ojdbc14</artifactId>
                <version>${oracle.connector.version}</version>
            </dependency>

       you will not really get jar through maven, because you don't have permission to get the jar.

    2. sulution:

       you can get the jar from some web site, and then install it to you local maven repository.

       now i put my jar to D:ojdbc14.jar

    3. Follow up

       may be  you will meet the problem(not support oracle driver 1.0), it says that your oracle jdbc version not support your environment.

       ojdbc6 support JDK6, JDBC4.0.

      import the jar to your local maven repository

       you can set the dependency like this:

            <!-- oracle-connector -->
            <dependency>
                <groupId>com.oracle</groupId>
                <artifactId>ojdbc6</artifactId>
                <version>11.2.0.1.0</version>
            </dependency>

      ok, the problem fixed.

  • 相关阅读:
    Django进阶2
    Django进阶
    Django基础
    jQuery基本操作
    Dom编程
    JavaScript简介
    Python—sqlalchemy
    Python—RabbitMQ
    Python—redis
    Python—操作redis
  • 原文地址:https://www.cnblogs.com/rocky-fang/p/5288008.html
Copyright © 2011-2022 走看看