【文件属性】:
文件名称:SpringBoot-Restful-Webservice:Spring Boot Restful Web服务
文件大小:59KB
文件格式:ZIP
更新时间:2021-03-26 07:40:05
Java
SpringBoot-Restful-Webservice
RestfulWebserviceSpringBoot
用于使用邮递员进行测试
启动应用程序时,它将创建10名员工,其ID从1到10。ID为AutoIncrement
获取所有员工
GET http://localhost:8080/secure/allEmployee
通过ID获取员工
GET http://localhost:8080/secure/employee/{id}
按编号删除员工
Delete http://localhost:8080/secure/employee/{id}
添加新员工
POST http://localhost:8080/secure/employee
RequestBody
{"name":"Employee12","salary":20.5}
更新员工数据
http://local
【文件预览】:
SpringBoot-Restful-Webservice-master
----.gitignore(333B)
----.mvn()
--------wrapper()
----README.md(703B)
----pom.xml(2KB)
----mvnw(9KB)
----src()
--------test()
--------main()
----mvnw.cmd(6KB)