|
|
@ -20,9 +20,9 @@ package com.tencent.cloud.polaris.ratelimit.config;
|
|
|
|
import com.tencent.cloud.polaris.context.ConditionalOnPolarisEnabled;
|
|
|
|
import com.tencent.cloud.polaris.context.ConditionalOnPolarisEnabled;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Import;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Properties auto configuration of rate limit.
|
|
|
|
* Properties auto configuration of rate limit.
|
|
|
@ -31,7 +31,7 @@ import org.springframework.context.annotation.Import;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@ConditionalOnPolarisEnabled
|
|
|
|
@ConditionalOnPolarisEnabled
|
|
|
|
@Import({PolarisRateLimitProperties.class})
|
|
|
|
@EnableConfigurationProperties(PolarisRateLimitProperties.class)
|
|
|
|
public class PolarisRateLimitPropertiesAutoConfiguration {
|
|
|
|
public class PolarisRateLimitPropertiesAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|