Skip to content

hacker-and-painter/spring-boot-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

通过 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接口最佳实践

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages