@ApiOperation Annotations, @FeignClient

Source: Internet
Author: User

@ApiOperation is not a note from spring, it's swagger.
Com.wordnik.swagger.annotations.ApiOperation;

@ApiOperation and @apiparam annotations for API generation, the parameters are described below:
@ApiOperation (value = "Interface description", HttpMethod = "Interface Request Mode", Response = "interface return parameter type", notes = "interface Release notes"; Other parameters can refer to source code;
@ApiParam (required = "parameter Required", name = "parameter name", value = "Parameter specific description"

Please participate in the following details:

51923720

@FeignClient

is a note from spring cloud that services can use @feignclient to consume and discover other services in the service farm

In general, the feign source implementation process is as follows:

    • First open feigncleint with @enablefeigncleints annotations
    • Implement interfaces according to feign rules and add @feigncleint annotations
    • After the program is started, a packet scan is performed, scanning all of the @ Feigncleint's annotated classes, and injecting this information into the IOC container.
    • When the interface method is called, the requestemplate is generated through the JDK's proxy.
    • Requestemplate in Generate request
    • Request is given to the client, where the client can be httpurlconnection, httpclient, or okhttp
    • Finally, the client is encapsulated into the Loadbalanceclient class, which combines the class ribbon for load balancing.

See blog below

53322796

@ApiOperation Annotations, @FeignClient

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.