• shiro中setUnauthorizedUrl不起作用或setUnauthorizedUrl无效

    SpringBoot中集成Shiro的时候, 配置setUnauthorizedUrl("/notPermit")了,但是不起作用,只会在控制台打印UnauthorizedException异常信息:原因: Shiro源码中是这样做的: private void applyUnauthorizedUrlIfNecessary(Filter filter) { St...

    Java 2020年11月13日 2481 0