https://loizenai.com/spring-boot-rest-api-with-oracle-database/
Spring boot REST API with Oracle database
How to connect Oracle database with spring Boot? It is the one of most common questions for developers. So in the post “Spring boot REST API with Oracle database”, I will help you to try it with Spring JPA. Here is a to do list for the tutorial:
To do the tutorial, you need prepare Java >= 1.8, Spring Tool Suite in local computer for development.
Let’s go !
In the SpringBoot application, we use Spring JPA to connect and manipulate the data between Application and Oracle database. We define a repository to do CRUD operations (save, retrieve, update, delete) with entities. And for mapping the data between Spring Application with database table’s columns, we define a model class.
Checking pom.xml
file we see the needed dependencies as below:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.Oracle</groupId>
<artifactId>Oracle</artifactId>
<scope>runtime</scope>
</dependency>
<!-- Oracle Driver -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.3</version>
</dependency>
https://loizenai.com/spring-boot-rest-api-with-oracle-database/
Spring boot REST API with Oracle database
#springboot #restapi #oracle