callicoder/spring-boot-mysql-rest-api-tutorial
关于
使用 Spring Boot、MySQL、JPA 和 Hibernate 构建 RESTful CRUD API。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Spring 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/
探索相关项目
加载中…