1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Why should I add the driver class dependency in pom when the driver-class tag is defined in...

Discussão em 'StackOverflow' iniciado por Stack, Janeiro 18, 2021.

  1. Stack

    Stack Membro Participativo

    I have a Spring boot Hibernate web application. DB is Oracle.

    There's something that I cant understand : Why should I add the driver class dependency in pom.xml

    <dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc7</artifactId>
    <version>12.1.0</version>
    </dependency>


    When the driver is already defined in the tag in standalone.xml of my Jboss AS :

    <driver name="oracle" module="com.oracle.ojdbc8">
    <driver-class>oracle.jdbc.OracleDriver</driver-class>
    </driver>


    NB : I have a database connection pool on a Java EE application server (Jboss)

    Continue reading...

Compartilhe esta Página