@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