@ -91,7 +91,7 @@ public class FeignClientFactoryBean
@@ -91,7 +91,7 @@ public class FeignClientFactoryBean
private String path ;
private boolean decode 404 ;
private boolean dismiss 404 ;
private boolean inheritParentContext = true ;
@ -214,7 +214,7 @@ public class FeignClientFactoryBean
@@ -214,7 +214,7 @@ public class FeignClientFactoryBean
if ( queryMapEncoder ! = null ) {
builder . queryMapEncoder ( queryMapEncoder ) ;
}
if ( decode 404 ) {
if ( dismiss 404 ) {
builder . dismiss404 ( ) ;
}
ExceptionPropagationPolicy exceptionPropagationPolicy = getInheritedAwareOptional ( context ,
@ -268,8 +268,8 @@ public class FeignClientFactoryBean
@@ -268,8 +268,8 @@ public class FeignClientFactoryBean
}
}
if ( config . getDecode 404 ( ) ! = null ) {
if ( config . getDecode 404 ( ) ) {
if ( config . getDismiss 404 ( ) ! = null ) {
if ( config . getDismiss 404 ( ) ) {
builder . dismiss404 ( ) ;
}
}
@ -517,12 +517,12 @@ public class FeignClientFactoryBean
@@ -517,12 +517,12 @@ public class FeignClientFactoryBean
this . path = path ;
}
public boolean isDecode 404 ( ) {
return decode 404 ;
public boolean isDismiss 404 ( ) {
return dismiss 404 ;
}
public void setDecode404 ( boolean decode 404 ) {
this . decode404 = decode 404 ;
public void setDismiss404 ( boolean dismiss 404 ) {
this . dismiss404 = dismiss 404 ;
}
public boolean isInheritParentContext ( ) {
@ -577,7 +577,7 @@ public class FeignClientFactoryBean
@@ -577,7 +577,7 @@ public class FeignClientFactoryBean
}
FeignClientFactoryBean that = ( FeignClientFactoryBean ) o ;
return Objects . equals ( applicationContext , that . applicationContext )
& & Objects . equals ( beanFactory , that . beanFactory ) & & decode 404 = = that . decode 404
& & Objects . equals ( beanFactory , that . beanFactory ) & & dismiss 404 = = that . dismiss 404
& & inheritParentContext = = that . inheritParentContext & & Objects . equals ( fallback , that . fallback )
& & Objects . equals ( fallbackFactory , that . fallbackFactory ) & & Objects . equals ( name , that . name )
& & Objects . equals ( path , that . path ) & & Objects . equals ( type , that . type ) & & Objects . equals ( url , that . url )
@ -589,15 +589,16 @@ public class FeignClientFactoryBean
@@ -589,15 +589,16 @@ public class FeignClientFactoryBean
@Override
public int hashCode ( ) {
return Objects . hash ( applicationContext , beanFactory , decode404 , inheritParentContext , fallback , fallbackFactory ,
name , path , type , url , readTimeoutMillis , connectTimeoutMillis , followRedirects , refreshableClient ) ;
return Objects . hash ( applicationContext , beanFactory , dismiss404 , inheritParentContext , fallback ,
fallbackFactory , name , path , type , url , readTimeoutMillis , connectTimeoutMillis , followRedirects ,
refreshableClient ) ;
}
@Override
public String toString ( ) {
return new StringBuilder ( "FeignClientFactoryBean{" ) . append ( "type=" ) . append ( type ) . append ( ", " ) . append ( "name='" )
. append ( name ) . append ( "', " ) . append ( "url='" ) . append ( url ) . append ( "', " ) . append ( "path='" ) . append ( path )
. append ( "', " ) . append ( "decode 404=" ) . append ( decode 404 ) . append ( ", " ) . append ( "inheritParentContext=" )
. append ( "', " ) . append ( "dismiss 404=" ) . append ( dismiss 404 ) . append ( ", " ) . append ( "inheritParentContext=" )
. append ( inheritParentContext ) . append ( ", " ) . append ( "applicationContext=" ) . append ( applicationContext )
. append ( ", " ) . append ( "beanFactory=" ) . append ( beanFactory ) . append ( ", " ) . append ( "fallback=" )
. append ( fallback ) . append ( ", " ) . append ( "fallbackFactory=" ) . append ( fallbackFactory ) . append ( "}" )