在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:spring-boot-restful开源软件地址:https://gitee.com/blueswu/spring-boot-restful开源软件介绍:Spring Boot ExampleThis is a basic example of how to use Kotlin in a Spring Boot application. See the accompanying tutorialfor more information.
$ gradle bootRun Api request flow对验证接口发起一个post请求,header 带上Username和Password POST http://localhost:8080/api/v1/authenticateadd headerX-Auth-Username:userX-Auth-Password:password 得到token,这里的message {"status": 200,"message": "MTUwMDYzMjE2OTM0NGY0ZjQwMDk5NzMwYzQwNTdhNGZhM2U3ZTY5ZDIxNWJk"} 最后请求其他接口的时候,在header带上这个token,且输入和输出参数类型都是 GET http://localhost:8080/api/v1/users/1?page=1add headerX-Authorization:MTUwMDYzMjE2OTM0NGY0ZjQwMDk5NzMwYzQwNTdhNGZhM2U3ZTY5ZDIxNWJk Features
|
请发表评论