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.
- Host: GitHub
- URL: https://github.com/tahniat-ashraf/studentcourseregistration-springboot-oracledb
- Owner: tahniat-ashraf
- Created: 2017-02-06T06:35:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-12T08:50:30.000Z (over 8 years ago)
- Last Synced: 2025-01-23T00:44:36.477Z (9 months ago)
- Language: Java
- Size: 216 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
- JPAOracle 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
jarSpringOracleDBCRUD-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
```