[JAVA-26731] Upgraded bucket4j-spring-boot-starter version
This commit is contained in:
parent
21eb70547f
commit
b38b5327fd
|
@ -18,6 +18,10 @@
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-validation</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-security</artifactId>
|
<artifactId>spring-boot-starter-security</artifactId>
|
||||||
|
@ -95,7 +99,7 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Bucket4j -->
|
<!-- Bucket4j -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.vladimir-bukhtoyarov</groupId>
|
<groupId>com.bucket4j</groupId>
|
||||||
<artifactId>bucket4j-core</artifactId>
|
<artifactId>bucket4j-core</artifactId>
|
||||||
<version>${bucket4j.version}</version>
|
<version>${bucket4j.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -226,8 +230,8 @@
|
||||||
<barcode4j.version>2.1</barcode4j.version>
|
<barcode4j.version>2.1</barcode4j.version>
|
||||||
<qrgen.version>2.6.0</qrgen.version>
|
<qrgen.version>2.6.0</qrgen.version>
|
||||||
<zxing.version>3.3.0</zxing.version>
|
<zxing.version>3.3.0</zxing.version>
|
||||||
<bucket4j.version>7.6.0</bucket4j.version>
|
<bucket4j.version>8.1.0</bucket4j.version>
|
||||||
<bucket4j-spring-boot-starter.version>0.7.0</bucket4j-spring-boot-starter.version>
|
<bucket4j-spring-boot-starter.version>0.8.1</bucket4j-spring-boot-starter.version>
|
||||||
<caffeine.version>3.1.8</caffeine.version>
|
<caffeine.version>3.1.8</caffeine.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -21,19 +21,19 @@ bucket4j:
|
||||||
url: /api/v1/area.*
|
url: /api/v1/area.*
|
||||||
http-response-body: "{ \"status\": 429, \"error\": \"Too Many Requests\", \"message\": \"You have exhausted your API Request Quota\" }"
|
http-response-body: "{ \"status\": 429, \"error\": \"Too Many Requests\", \"message\": \"You have exhausted your API Request Quota\" }"
|
||||||
rate-limits:
|
rate-limits:
|
||||||
- expression: "getHeader('X-api-key')"
|
- cache-key: "getHeader('X-api-key')"
|
||||||
execute-condition: "getHeader('X-api-key').startsWith('PX001-')"
|
execute-condition: "getHeader('X-api-key').startsWith('PX001-')"
|
||||||
bandwidths:
|
bandwidths:
|
||||||
- capacity: 100
|
- capacity: 100
|
||||||
time: 1
|
time: 1
|
||||||
unit: hours
|
unit: hours
|
||||||
- expression: "getHeader('X-api-key')"
|
- cache-key: "getHeader('X-api-key')"
|
||||||
execute-condition: "getHeader('X-api-key').startsWith('BX001-')"
|
execute-condition: "getHeader('X-api-key').startsWith('BX001-')"
|
||||||
bandwidths:
|
bandwidths:
|
||||||
- capacity: 40
|
- capacity: 40
|
||||||
time: 1
|
time: 1
|
||||||
unit: hours
|
unit: hours
|
||||||
- expression: "getHeader('X-api-key')"
|
- cache-key: "getHeader('X-api-key')"
|
||||||
bandwidths:
|
bandwidths:
|
||||||
- capacity: 20
|
- capacity: 20
|
||||||
time: 1
|
time: 1
|
||||||
|
|
Loading…
Reference in New Issue