hacker-and-painter / spring-boot-restful

🛎 restful接口最佳实践

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

通过 Spring Boot 实现RestFul接口(restful接口最佳实践)

swagger文档

http://localhost:8080/swagger-ui.html

运行效果

  • 获取所有

get http://localhost:8080/employees

  • 获取一个

get http://localhost:8080/employees/8

  • 增加

post http://localhost:8080/employees

快速启动

·1. Mysql 创建 test 数据库

  1. 从 idea 启动项目
  2. 打开 swagger 文档页面, http://localhost:8080/swagger-ui.html

技术栈

  • spring boot
  • gradle
  • spring data jpa
  • mysql

参考

About

🛎 restful接口最佳实践


Languages

Language:Java 100.0%