|
|
|
@ -19,11 +19,14 @@
|
|
|
|
|
package com.tencent.cloud.polaris.router.config;
|
|
|
|
|
|
|
|
|
|
import com.tencent.cloud.polaris.router.RouterConfigModifier;
|
|
|
|
|
import com.tencent.cloud.polaris.router.config.properties.PolarisMetadataRouterProperties;
|
|
|
|
|
import com.tencent.cloud.polaris.router.config.properties.PolarisNearByRouterProperties;
|
|
|
|
|
import com.tencent.cloud.polaris.router.config.properties.PolarisRuleBasedRouterProperties;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.context.annotation.Import;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* RouterConfigModifierAutoConfiguration.
|
|
|
|
@ -32,6 +35,7 @@ import org.springframework.context.annotation.Configuration;
|
|
|
|
|
*/
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
|
@ConditionalOnPolarisRouterEnabled
|
|
|
|
|
@Import({PolarisNearByRouterProperties.class, PolarisMetadataRouterProperties.class, PolarisRuleBasedRouterProperties.class})
|
|
|
|
|
public class RouterConfigModifierAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|