1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

Use 'proxyBeanMethods = false' where possible.

This commit is contained in:
echooymxq
2019-12-05 22:29:29 +08:00
parent c765fc088d
commit b86503c0ad
55 changed files with 73 additions and 73 deletions

View File

@@ -48,12 +48,12 @@ import org.springframework.context.annotation.Configuration;
/**
* @author <a href="mailto:fangjian0423@gmail.com">Jim</a>
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(name = "spring.cloud.sentinel.enabled", matchIfMissing = true)
public class SentinelGatewayAutoConfiguration {
@ConditionalOnClass(ObjectMapper.class)
@Configuration
@Configuration(proxyBeanMethods = false)
protected static class SentinelConverterConfiguration {
static class ApiPredicateItemDeserializer
@@ -93,7 +93,7 @@ public class SentinelGatewayAutoConfiguration {
}
@Configuration
@Configuration(proxyBeanMethods = false)
protected static class SentinelJsonConfiguration {
private ObjectMapper objectMapper = new ObjectMapper();
@@ -127,7 +127,7 @@ public class SentinelGatewayAutoConfiguration {
}
@ConditionalOnClass(XmlMapper.class)
@Configuration
@Configuration(proxyBeanMethods = false)
protected static class SentinelXmlConfiguration {
private XmlMapper xmlMapper = new XmlMapper();

View File

@@ -57,7 +57,7 @@ import static org.springframework.web.reactive.function.BodyInserters.fromObject
/**
* @author <a href="mailto:fangjian0423@gmail.com">Jim</a>
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(GlobalFilter.class)
@ConditionalOnProperty(prefix = ConfigConstants.GATEWAY_PREFIX, name = "enabled",
havingValue = "true", matchIfMissing = true)

View File

@@ -45,7 +45,7 @@ import org.springframework.context.annotation.Configuration;
*
* @author tiger
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(ZuulServlet.class)
@ConditionalOnProperty(prefix = ConfigConstants.ZUUl_PREFIX, name = "enabled",
havingValue = "true", matchIfMissing = true)