Start a SringBoot Stater project from Eighter Eclipse or STS.
fill your Artifact and Group accordingly and click “Next”.
then select Spring Web and Spring Data JPA.
POM.xml
DemoApplication.java
Project Structure
Controller class
Entity class
application.properties
Then run it .
Note:
- use spring.datasource.driver-class-name=oracle.jdbc.OracleDriver insist of spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
- Do not use any extra dependency of ojdbc.jar when you are using it from local references.
Comments
Post a Comment