title: How to connect to oracle database using spring boot
body: <p>I'm working with Spring Boot application and trying to access an Oracle database. Although it was successfully built, it gives the error below when I am trying to deploy in Kubernetes.</p>
  
  <p>I changed the <code>application.properties</code> file and <code>pom.xml</code> file with below configurations:</p>
  
  <p><strong>Application.yml</strong></p>
  
  <pre><code> spring.datasource.url=jdbc:oracle:thin:@&lt;IP&gt;:1521:orcl
   spring.datasource.username=&lt;username&gt;
   spring.datasource.password=&lt;password&gt;
   spring.datasource.driver.class=oracle.jdbc.driver.OracleDriver
  </code></pre>
  
  <p><strong>POM file</strong></p>
  
  <pre><code> &lt;dependency&gt;
       &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
       &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
   &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>Exception</strong></p>
  
  <blockquote>
  <pre><code>***************************
  APPLICATION FAILED TO START
  ***************************
   Description:
   Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:
       Property: driverclassname
      Value: oracle.jdbc.OracleDriver
      Origin: "driverClassName" from property source "source"
      Reason: Failed to load driver class oracle.jdbc.OracleDriver in either of 
              HikariConfig class loader or Thread context classloader
   Action:
   Update your application's configuration   
  </code></pre>
  </blockquote>