io.github.ingrowthly.noduplicate.config.NoDuplicateAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of no-duplicate-spring-boot-starter Show documentation
Show all versions of no-duplicate-spring-boot-starter Show documentation
Redis-based anti-duplicate submission tool.
The newest version!
package io.github.ingrowthly.noduplicate.config;
import io.github.ingrowthly.noduplicate.component.NoDuplicateAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;
/**
* 防重复提交自动配置类
*
* @author ingrowthly
* @since 2023/4/3
*/
@Configuration
public class NoDuplicateAutoConfiguration {
@Bean
public NoDuplicateAspect noDuplicateSubmitAspect(StringRedisTemplate stringRedisTemplate) {
return new NoDuplicateAspect(stringRedisTemplate);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy