mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-08 16:57:09 +08:00
refactor(ratelimiter): 将限流相关代码从 security 模块中分离,创建独立的 ratelimiter 模块
修复部分幂等配置错误
This commit is contained in:
@@ -26,6 +26,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.core.ResolvableType;
|
||||
import top.continew.starter.cache.redisson.autoconfigure.RedissonAutoConfiguration;
|
||||
import top.continew.starter.core.constant.PropertiesConstants;
|
||||
import top.continew.starter.idempotent.aop.IdempotentAspect;
|
||||
import top.continew.starter.idempotent.generator.IdempotentNameGenerator;
|
||||
@@ -37,7 +38,7 @@ import top.continew.starter.idempotent.generator.IdempotentNameGenerator;
|
||||
* @author Charles7c
|
||||
* @since 2.10.0
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@AutoConfiguration(after = RedissonAutoConfiguration.class)
|
||||
@EnableConfigurationProperties(IdempotentProperties.class)
|
||||
@ConditionalOnProperty(prefix = PropertiesConstants.IDEMPOTENT, name = PropertiesConstants.ENABLED, havingValue = "true", matchIfMissing = true)
|
||||
public class IdempotentAutoConfiguration {
|
||||
|
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"top.continew.starter.idempotent.annotation.Idempotent@key":{
|
||||
"method":{
|
||||
"parameters": true
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user