天天看點

No cache or cacheManager properties have been set. Authorization cache cannot be obtained.

未設定授權緩存

解決:

           隻需要關閉授權緩存:

myRealm.authorizationCachingEnabled = false
           

我是springboot項目:

        在配置authRealm的bean裡加上:

authRealm.setAuthorizationCachingEnabled(false);
           

如下:

No cache or cacheManager properties have been set. Authorization cache cannot be obtained.