Spring Boot Data JPA REST API
Best Of Hello World: Spring Boot Data JPA REST API
Say Hello
This is a very simple and basic introductory program to start with Spring Boot Data JPA REST API Application. This project gives an idea about how to create REST APIs with Spring Boot and Database connection with Hibernate using Spring Data JPA.
Getting Started
This sample code is fully executable on its own based on the prerequisites are set up properly.
Prerequisites
You are required to have few tools before you start with using the source code.
- JDK 1.8
- Maven
- IDE (Recommended - Spring Tool Suite)
- My SQL 5.6
- Git
Install JDK, Maven and Git as first step, before you get the the code base setup.
Setup Code Base
Use below URL to Clone Source Code
git clone https://github.com/get2mandar/SpringBootRestApiDataJPA.git
Build a Project using Maven by Command Line.
Change Directory to Downloaded Project Directory and execute below Maven Command.
mvn spring-boot:run
Run
Run the Java Class blog.panditmandar.code.restapp.SpringBootDataJpaRestApplication
to execute this Application.
mvn package
java -jar target/SpringBootRestApiDataJPA-0.1.jar