ucket4j.spring.boot.starter.bucket4j-spring-boot-starter-example-ehcache.0.0.2.source-code.application.yml Maven / Gradle / Ivy
The newest version!
management:
security:
enabled: false
spring:
cache:
jcache:
config: classpath:ehcache.xml
bucket4j:
rate-limit:
enabled: true
configs:
- cache-name: buckets
filter-type: expression
expression: "@securityService.username()?: getRemoteAddr()"
url: /*
filter-order: 0
bandwidths:
-
capacity: 20
time: 1
unit: minutes