jcasbin / casbin-spring-boot-starter

Spring Boot 2.x & 3.x Starter for Casbin, see example at: https://github.com/jcasbin/casbin-spring-boot-example

Home Page:https://mvnrepository.com/artifact/org.casbin/casbin-spring-boot-starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JdbcAdapter will not load the policy from database in initial phase

doctormacky opened this issue · comments

commented

When we try to run the springboot, it will not load existing policy from database. that means the poliicy in memoy of the appliication are empty, this should not work as expected.

from my understanding, the adapter should load all the policy from database during the initial phase of application.
Suggest we set following attribute in JdbcAdapter from true to false as default.
private volatile boolean isFiltered = false ;

Any idea ?

@seriouszyx can you take a look?

@doctormacky The isFilter value has been set as false in #58.

Resolved.