mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2024-11-16 12:20:12 +01:00
remove pbean
This commit is contained in:
parent
95dced6455
commit
563c612395
@ -19,14 +19,6 @@ import io.github.bucket4j.Refill;
|
||||
@Configuration
|
||||
public class Beans implements WebMvcConfigurer {
|
||||
|
||||
@Bean
|
||||
public Bucket createRateLimitBucket() {
|
||||
Refill refill = Refill.of(1000, Duration.ofDays(1));
|
||||
Bandwidth limit = Bandwidth.classic(1000, refill).withInitialTokens(1000);
|
||||
return Bucket4j.builder().addLimit(limit).build();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(localeChangeInterceptor());
|
||||
|
Loading…
Reference in New Issue
Block a user