Revert AnnotationGatewayProxyFactoryBean logic
The `AnnotationGatewayProxyFactoryBean` can be configured via setters and via annotation in the provided interface. * Override `setProxyDefaultMethods()` to `true` only if annotation explicitly provides `true`
This commit is contained in:
@@ -95,7 +95,10 @@ public class AnnotationGatewayProxyFactoryBean extends GatewayProxyFactoryBean {
|
||||
|
||||
populateAsyncExecutorIfAny();
|
||||
|
||||
setProxyDefaultMethods(this.gatewayAttributes.getBoolean("proxyDefaultMethods"));
|
||||
boolean proxyDefaultMethods = this.gatewayAttributes.getBoolean("proxyDefaultMethods");
|
||||
if (proxyDefaultMethods) { // Override only if annotation attribute is different
|
||||
setProxyDefaultMethods(true);
|
||||
}
|
||||
super.onInit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user