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

关于springboot集成casbin

shangchaoshi opened this issue · comments

原项目采用springboot4构成,配置文件如下。集成casbin的时候会报错
I@GM C7U6 YTNHAGY(TMUIS

项目配置文件如下
L73QR(A}3NEK %YTICEA0H
X132TM4O2L)M 955D4I2R{H
@fangzhengjin

spring4的直接使用虽然没有测试过,但是跟boot差别应该不大,看错错误提示应该是没加载到casbin 依赖,可以尝试手动添加下试试!
https://github.com/casbin/jcasbin

Please use English everywhere to make Casbin an international project.

Or your current version does not support spring @nullable annotations, you can try to update the spring version.

Or your current version does not support spring @nullable annotations, you can try to update the spring version.

spring4 do not supported @nullable annotations,it needs update to spring5, but my project is too complex, is there any other way to solve it?

Do you need a watcher for your project?

If you need to use watcher, please set casbin.enableWatcher=true to try

If you need to use watcher, please set casbin.enableWatcher=true to try

i don't need it, no matter how i set it up,still reporting that error

Which spring version are you using? I tried to modify it.

Which spring version are you using? I tried to modify it.

org.springframework.boot
spring-boot-starter-parent
1.5.9.RELEASE

springboot 1.5.9, it dependencys on spring4

Version 0.0.8 has been released. If you use maven.aliyun.com , you can get it immediately. If you use the central repository, you need to wait for two hours.