Spring Security ACL を使用しており、キャッシュを定義する必要があります。これまで私はこれを使用していました:
@Bean(name = { "defaultAclCache", "aclCache" })
protected AclCache defaultAclCache() {
return new SpringCacheBasedAclCache(defaultAclJCacheFactory(), defaultPermissionGrantingStrategy(), defaultAclAuthorizationStrategy());
}
そしてそれはすべてうまくいきました。ただし、使用に切り替えて、と互換性のないインスタンスを返すようにjcache
なりました:defaultAclJCacheFactory()
javax.cache.Cache
SpringCacheBasedAclCache
@Bean(name = { "defaultAclJCacheFactory", "aclJCacheFactory" })
protected Cache defaultAclJCacheFactory() {
return cacheManager.getCache("acl_cache");
}
JCache
の実装を検索しようとしましたorg.springframework.security.acls.model.AclCache
が、Spring Cache 用と EhCache 用に 1 つしかありません。に導入する予定はありますjcache
か?