Commit fe06370a by Jin Zhang Committed by Spencer Gibb

correct comments in FeignClient, SendResponseFilter, RibbonRoutingFilter (#1935)

parent a1b1a7d7
...@@ -107,7 +107,7 @@ public @interface FeignClient { ...@@ -107,7 +107,7 @@ public @interface FeignClient {
String path() default ""; 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; boolean primary() default true;
......
...@@ -71,7 +71,7 @@ public class SendResponseFilter extends ZuulFilter { ...@@ -71,7 +71,7 @@ public class SendResponseFilter extends ZuulFilter {
public SendResponseFilter() { public SendResponseFilter() {
super(); 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 { try {
HttpServletResponse.class.getMethod("setContentLengthLong"); HttpServletResponse.class.getMethod("setContentLengthLong");
} catch(NoSuchMethodException e) { } catch(NoSuchMethodException e) {
......
...@@ -68,7 +68,7 @@ public class RibbonRoutingFilter extends ZuulFilter { ...@@ -68,7 +68,7 @@ public class RibbonRoutingFilter extends ZuulFilter {
this.helper = helper; this.helper = helper;
this.ribbonCommandFactory = ribbonCommandFactory; this.ribbonCommandFactory = ribbonCommandFactory;
this.requestCustomizers = requestCustomizers; 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 { try {
HttpServletRequest.class.getMethod("getContentLengthLong"); HttpServletRequest.class.getMethod("getContentLengthLong");
} catch(NoSuchMethodException e) { } catch(NoSuchMethodException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment