Git Product home page Git Product logo

spring-boot-starter's Introduction

启动步骤

  1. 创建数据库(数据库信息见 /src/main/resources/application.yml),可根据自己需要修改

  2. 启动

 在项目跟目录下执行: ./gradlew bootRun
  1. 打开浏览器,输入 http://localhost:8080/,看到页面显示 Success! ,环境搭建成功

结果截图:

Company API

GET /companies #获取company列表
img.png
GET /companies/1 #获取某个具体company
img_1.png
GET /companies/1/employees #获取某个具体company下所有employee列表
img_2.png
GET /companies/page/1/pageSize/5 #分页查询,page等于1,pageSize等于5
img_3.png
POST /companies #增加一个company
img_4.png
PUT /companies/1 #更新某个company
img_5.png
DELETE /companies/1 #删除某个company以及名下所有employees
img_6.png

employees API

GET /employees #获取employee列表
img_7.png
GET /employees/1 #获取某个具体employee

img_8.png
GET /employees/page/1/pageSize/5 #分页查询,page等于1,pageSize等于5

img_9.png
GET /employees/male #筛选出所有男性Employee

img_10.png
POST /employees #增加一个employee

img_11.png
PUT /employees/1 #更新某个employee

修改前
img_12.png

修改
img_13.png
修改后
img_14.png
DELETE /employees/1 #删除某个employee
删除前
img_15.png
删除操作
img_16.png
删除后
img_17.png

spring-boot-starter's People

Contributors

zx897 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.