callicoder/spring-boot-mysql-rest-api-tutorial
소개
Spring Boot, MySQL, JPA, Hibernate를 사용해 RESTful CRUD API를 구축합니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSpring Boot, MySQL, JPA, Hibernate Rest API Tutorial
Build Restful CRUD API for a simple Note-Taking application using Spring Boot, Mysql, JPA and Hibernate.
Requirements
Java - 1.8.x
Maven - 3.x.x
Mysql - 5.x.x
Steps to Setup
1. Clone the application
git clone https://github.com/callicoder/spring-boot-mysql-rest-api-tutorial.git
2. Create Mysql database
create database notes_app
3. Change mysql username and password as per your installation
open
src/main/resources/application.propertieschange
spring.datasource.usernameandspring.datasource.passwordas per your mysql installation
4. Build and run the app using maven
mvn package
java -jar target/easy-notes-1.0.0.jar
Alternatively, you can run the app without packaging it using -
mvn spring-boot:run
The app will start running at http://localhost:8080.
Explore Rest APIs
The app defines following CRUD APIs.
GET /api/notes
POST /api/notes
GET /api/notes/{noteId}
PUT /api/notes/{noteId}
DELETE /api/notes/{noteId}
You can test them using postman or any other rest client.
Learn more
You can find the tutorial for this application on my blog -
https://www.callicoder.com/spring-boot-rest-api-tutorial-with-mysql-jpa-hibernate/
관련 프로젝트 살펴보기
불러오는 중…