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

Two databases

uPagge opened this issue · comments

I have two databases in my project

How can I tell which database to create tables in?

I think it depends on which data source you use as the default data source (master data source). After the container starts, casbin-spring-boot-starter will get the injected data source information to determine which database you are using, and then instantiate the corresponding adapter. @uPagge

@shy1st Yes, I understand that. This is the problem, that I would like to use a different base than the default))

@shy1st Yes, I understand that. This is the problem, that I would like to use a different base than the default))

  1. For now, you can solve this problem by using a custom JdbcTemplate instead of the default JdbcTemplate used by Casbin.
  2. Wait for us to release a new version that supports this feature (it will take some time).

Got it, thanks for the answer)

Can we make it customizable for the user?

@uPagge this issue has been fixed in: #36

🎉 This issue has been resolved in version 0.0.13 🎉

The release is available on:

Your semantic-release bot 📦🚀