correct comments in FeignClient, SendResponseFilter, RibbonRoutingFilter (#1935)
This commit is contained in:
@@ -107,7 +107,7 @@ public @interface FeignClient {
|
||||
String path() default "";
|
||||
|
||||
/**
|
||||
* Whether to mark the feign proxy as a primary bean. Defaults to false.
|
||||
* Whether to mark the feign proxy as a primary bean. Defaults to true.
|
||||
*/
|
||||
boolean primary() default true;
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ public class SendResponseFilter extends ZuulFilter {
|
||||
|
||||
public SendResponseFilter() {
|
||||
super();
|
||||
// To support Servlet API 3.0.1 we need to check if setcontentLengthLong exists
|
||||
// To support Servlet API 3.1 we need to check if setContentLengthLong exists
|
||||
try {
|
||||
HttpServletResponse.class.getMethod("setContentLengthLong");
|
||||
} catch(NoSuchMethodException e) {
|
||||
|
||||
@@ -68,7 +68,7 @@ public class RibbonRoutingFilter extends ZuulFilter {
|
||||
this.helper = helper;
|
||||
this.ribbonCommandFactory = ribbonCommandFactory;
|
||||
this.requestCustomizers = requestCustomizers;
|
||||
// To support Servlet API 3.0.1 we need to check if getcontentLengthLong exists
|
||||
// To support Servlet API 3.1 we need to check if getContentLengthLong exists
|
||||
try {
|
||||
HttpServletRequest.class.getMethod("getContentLengthLong");
|
||||
} catch(NoSuchMethodException e) {
|
||||
|
||||
Reference in New Issue
Block a user