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

This commit is contained in:
Jin Zhang
2017-05-16 01:44:14 +08:00
committed by Spencer Gibb
parent a1b1a7d702
commit fe06370aa2
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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) {