rename cacheManager to shiroCacheManager
This commit is contained in:
parent
fdb2496f10
commit
4af05dc763
|
@ -71,9 +71,9 @@ public class IamBaseAutoConfig {
|
|||
*
|
||||
* @return
|
||||
*/
|
||||
@Bean
|
||||
@Bean(name = "shiroCacheManager")
|
||||
@ConditionalOnMissingBean(CacheManager.class)
|
||||
public CacheManager cacheManager() {
|
||||
public CacheManager shiroCacheManager() {
|
||||
String className = iamBaseProperties.getCacheManagerClass();
|
||||
if (V.isEmpty(className)) {
|
||||
return null;
|
||||
|
@ -87,10 +87,10 @@ public class IamBaseAutoConfig {
|
|||
}
|
||||
|
||||
@Bean
|
||||
@DependsOn({"cacheManager"})
|
||||
@DependsOn({"shiroCacheManager"})
|
||||
public Realm realm() {
|
||||
BaseJwtRealm realm = new BaseJwtRealm();
|
||||
CacheManager cacheManager = cacheManager();
|
||||
CacheManager cacheManager = shiroCacheManager();
|
||||
if (cacheManager != null) {
|
||||
realm.setCachingEnabled(true);
|
||||
realm.setCacheManager(cacheManager);
|
||||
|
|
Loading…
Reference in New Issue