@ApiOperation注解,@FeignClient

时间:2018-05-23 02:00:41   收藏:0   阅读:931

 

@ApiOperation不是spring自带的注解,是swagger里的 
com.wordnik.swagger.annotations.ApiOperation;

@ApiOperation和@ApiParam为API生成做的注解,个参数说明如下: 
@ApiOperation(value = “接口说明”, httpMethod = “接口请求方式”, response = “接口返回参数类型”, notes = “接口发布说明”;其他参数可参考源码; 
@ApiParam(required = “是否必须参数”, name = “参数名称”, value = “参数具体描述”

详细请参与如下:

https://blog.csdn.net/fansunion/article/details/51923720

 

@FeignClient

是spring cloud的注解,服务可以使用@FeignClient使用和发现服务场中的其他服务

 

总到来说,Feign的源码实现的过程如下:

详见下面博客

https://blog.csdn.net/chenqipc/article/details/53322796

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!