-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e27314
commit dcebc2f
Showing
36 changed files
with
1,025 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 6 additions & 9 deletions
15
...ffing/bucket4j/spring/boot/starter/config/cache/redis/redisson/RedissonCacheResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
...ring/boot/starter/config/cache/redis/springdata/RedisSpringDataBucket4jConfiguration.java
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
...ket4j/spring/boot/starter/config/cache/redis/springdata/RedisSpringDataCacheResolver.java
This file was deleted.
Oops, something went wrong.
8 changes: 2 additions & 6 deletions
8
...4j/spring/boot/starter/config/filter/servlet/predicate/ServletHeaderExecutePredicate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
.../bucket4j/spring/boot/starter/config/filter/servlet/predicate/ServletMethodPredicate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...et4j/spring/boot/starter/config/filter/servlet/predicate/ServletPathExecutePredicate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...t4j/spring/boot/starter/config/filter/servlet/predicate/ServletQueryExecutePredicate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 27 additions & 2 deletions
29
.../starter/config/filter/servlet/predicate/ServletRequestExecutePredicateConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,34 @@ | ||
package com.giffing.bucket4j.spring.boot.starter.config.filter.servlet.predicate; | ||
|
||
import org.springframework.context.annotation.ComponentScan; | ||
import com.giffing.bucket4j.spring.boot.starter.config.filter.servlet.Bucket4JAutoConfigurationServletFilter; | ||
import org.springframework.boot.autoconfigure.AutoConfigureAfter; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
@ComponentScan | ||
@AutoConfigureAfter(Bucket4JAutoConfigurationServletFilter.class) | ||
@ConditionalOnBean(Bucket4JAutoConfigurationServletFilter.class) | ||
public class ServletRequestExecutePredicateConfiguration { | ||
|
||
@Bean | ||
ServletHeaderExecutePredicate servletHeaderExecutePredicate() { | ||
return new ServletHeaderExecutePredicate(); | ||
} | ||
|
||
@Bean | ||
ServletMethodPredicate servletMethodPredicate() { | ||
return new ServletMethodPredicate(); | ||
} | ||
|
||
@Bean | ||
ServletPathExecutePredicate servletPathExecutePredicate() { | ||
return new ServletPathExecutePredicate(); | ||
} | ||
|
||
@Bean | ||
ServletQueryExecutePredicate servletQueryExecutePredicate() { | ||
return new ServletQueryExecutePredicate(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea/modules.xml | ||
.idea/jarRepositories.xml | ||
.idea/compiler.xml | ||
.idea/libraries/ | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### Eclipse ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.giffing.bucket4j.spring.boot.starter</groupId> | ||
<artifactId>bucket4j-spring-boot-starter-parent</artifactId> | ||
<version>${revision}</version> | ||
<relativePath>../../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>bucket4j-spring-boot-starter-example-redis-jedis</artifactId> | ||
|
||
<properties> | ||
<maven.compiler.source>17</maven.compiler.source> | ||
<maven.compiler.target>17</maven.compiler.target> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<testcontainers-redis-junit.version>1.6.4</testcontainers-redis-junit.version> | ||
<jedis.version>5.0.1</jedis.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-web</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-validation</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-actuator</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.giffing.bucket4j.spring.boot.starter</groupId> | ||
<artifactId>bucket4j-spring-boot-starter</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.bucket4j</groupId> | ||
<artifactId>bucket4j-redis</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>redis.clients</groupId> | ||
<artifactId>jedis</artifactId> | ||
<version>${jedis.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.redis.testcontainers</groupId> | ||
<artifactId>testcontainers-redis-junit</artifactId> | ||
<version>${testcontainers-redis-junit.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-test</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
|
||
</dependencies> | ||
|
||
</project> |
Oops, something went wrong.