An open API service indexing awesome lists of open source software.

https://github.com/tahniat-ashraf/studentcourseregistration-springboot-oracledb

A Sample Spring Boot CRUD application which demonstrates features of Spring Boot and it's seamless integration with Oracle Database.
https://github.com/tahniat-ashraf/studentcourseregistration-springboot-oracledb

Last synced: 7 months ago
JSON representation

A Sample Spring Boot CRUD application which demonstrates features of Spring Boot and it's seamless integration with Oracle Database.

Awesome Lists containing this project

README

          

# StudentCourseRegistration-SpringBoot-OracleDB

A Sample Spring Boot CRUD application which demonstrates features of Spring Boot and it's seamless integration with Oracle Database.


Project Structure : StudentCourseRegistration-SpringBoot-OracleDB/project structure.PNG

View in browser : StudentCourseRegistration-SpringBoot-OracleDB/view in browser.PNG

IDE Used : Intellij IDEA 2016.3

Java Version Used : 1.8


Dependencies (Maven) :

- JDBC
- Oracle
- Thymeleaf
- Web
- JPA

Oracle DB integration :

- Driver version : 11.2.0.3

- Add Oracle JDBC driver in your local maven repository :
https://www.mkyong.com/maven/how-to-add-oracle-jdbc-driver-in-your-maven-local-repository/

- Add these lines within dependencies in pom.xml (maven) :

```

com.oracle
ojdbc6
11.2.0.3

```
- Configure Oracle Database properties in application.properties :

```
#spring.datasource.url=jdbc:mysql://localhost:3306/_SCHEMA_NAME
#spring.datasource.username=_YOUR_USERNAME
#spring.datasource.password=_YOUR_PASSWORD
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
#spring.jpa.hibernate.ddl-auto=update
#server.port=9080
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@_SERVER_IP:_SERVER_PORT:_SERVICE_ID
spring.datasource.username=_YOUR_USERNAME
spring.datasource.password=_YOUR_PASSWORD
spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialect
spring.jpa.show-sql=true
server.port=8080
```
Application URL : http://localhost:8080/StudentApp/create/


pom.xml

```

4.0.0

com.priyam.spring
springoracledbcrud-demo
0.0.1-SNAPSHOT
jar

SpringOracleDBCRUD-Demo
SpringOracleDBCRUD-Demo


org.springframework.boot
spring-boot-starter-parent
1.4.3.RELEASE


UTF-8
UTF-8
1.8



org.springframework.boot
spring-boot-starter-jdbc



com.oracle
ojdbc6
11.2.0.3


org.springframework.boot
spring-boot-starter-thymeleaf


org.springframework.boot
spring-boot-starter-web


org.springframework.boot
spring-boot-starter-data-jpa







org.springframework.boot
spring-boot-starter-test
test




org.springframework.boot
spring-boot-maven-plugin


```