码迷,mamicode.com
首页 > 其他好文 > 详细

Swagger 配置

时间:2019-12-13 18:01:53      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:class   ati   auth   value   map   配置   spring   agg   ring   

pom配置
<!-- swagger2 -->
<dependency>
          <groupId>io.springfox</groupId>
          <artifactId>springfox-swagger2</artifactId>
          <version>2.8.0</version>
      </dependency>
      <dependency>
          <groupId>io.springfox</groupId>
          <artifactId>springfox-swagger-ui</artifactId>
          <version>2.8.0</version>
      </dependency>

 注解参数

@Api(description = "任务规则", value = "任务规则管理")
@ApiOperation(value = "新增任务规则", notes = "新增任务规则")
@RequestMapping(path = "/insert", method = RequestMethod.POST)
@Authorization //需注册

Swagger 配置

标签:class   ati   auth   value   map   配置   spring   agg   ring   

原文地址:https://www.cnblogs.com/panchangde/p/12036477.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!