swagger
iamlzjoco
这个作者很懒,什么都没留下…
展开
-
springboot集成swagger
1.添加依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> <groupId>io.springfox<原创 2020-08-25 16:17:31 · 138 阅读 · 0 评论 -
springboot+swagger传递参数的几种格式
1.在请求头中传参数 @ApiImplicitParam(value = "token", name = "token",dataType = "String",paramType="header") 2.请求体中传递的参数是Java对象 @ApiImplicitParam(name = "Car", value = "新增车辆",paramType = "body", required = true, dataTypeClass = Car.class) 3原创 2020-07-02 11:08:53 · 2176 阅读 · 0 评论