gigy-example:Spring Boot REST API示例

时间:2021-04-29 08:40:25
【文件属性】:
文件名称:gigy-example:Spring Boot REST API示例
文件大小:24KB
文件格式:ZIP
更新时间:2021-04-29 08:40:25
Java 关于 这是一个示例项目,说明了在Spring Boot中创建RESTful API。 运行这个项目 mvn spring-boot:run 获取令牌 curl -X POST --user 'gigy:secret' -d 'grant_type=password&username=peter@example.com&password=password' http://localhost:8000/gigy/oauth/token 示例命令 从API中获取所有人: curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -X GET http://localhost:8000/gigy/people 执照 该代码在Apache L
【文件预览】:
gigy-example-master
----pom.xml(2KB)
----LICENSE(11KB)
----src()
--------test()
--------main()
----README.md(615B)

网友评论