同步操作将从 user_499098/spring-boot-mysql-rest-api 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Build Restful CRUD API for a simple Note-Taking application using Spring Boot, Mysql, JPA and Hibernate.
Java - 1.8.x
Maven - 3.x.x
Mysql - 5.x.x
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.properties
change spring.datasource.username
and spring.datasource.password
as 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.
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.
You can find the tutorial for this application on my blog -
https://www.callicoder.com/spring-boot-rest-api-tutorial-with-mysql-jpa-hibernate/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。