File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ dependencyManagement {
39
39
}
40
40
41
41
dependencies {
42
- api ' org.casbin:jcasbin:1.40 .0'
42
+ api ' org.casbin:jcasbin:1.55 .0'
43
43
compileOnly ' org.springframework.boot:spring-boot-starter-data-redis'
44
44
compileOnly ' org.casbin:jcasbin-redis-watcher:1.4.1'
45
45
runtimeOnly ' com.h2database:h2:2.2.224'
46
46
implementation ' org.springframework.boot:spring-boot-starter-jdbc'
47
- implementation(' org.casbin:jdbc-adapter:2.5 .0' ) {
47
+ implementation(' org.casbin:jdbc-adapter:2.7 .0' ) {
48
48
exclude group : ' org.casbin' , module : ' jcasbin'
49
49
}
50
50
implementation ' org.casbin:jcasbin-lettuce-redis-watcher:1.1.0'
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class EnforcerTest {
29
29
30
30
@ Test
31
31
void test1 () {
32
+ enforcer .clearPolicy ();
32
33
// user rights
33
34
enforcer .addPolicy ("alice" , "data1" , "read" );
34
35
enforcer .addPolicy ("bob" , "data2" , "write" );
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ casbin:
33
33
spring :
34
34
# Although the data source is configured here, the custom data source is switched to H2 when the unit test is tested.
35
35
datasource :
36
- driver-class-name : com.mysql.jdbc.Driver
36
+ driver-class-name : com.mysql.cj. jdbc.Driver
37
37
url : jdbc:mysql://localhost:3306/casbin?useSSL=false
38
38
username : root
39
39
password : casbin_test
You can’t perform that action at this time.
0 commit comments