From 5e5577e685a3a90727110c18af95f0975686e2b5 Mon Sep 17 00:00:00 2001 From: redkale Date: Fri, 7 Jun 2024 14:58:42 +0800 Subject: [PATCH] CacheManager config --- .../java/META-INF/application-template.xml | 673 +++++++++--------- .../cache/spi/CacheManagerService.java | 3 +- 2 files changed, 338 insertions(+), 338 deletions(-) diff --git a/src/main/java/META-INF/application-template.xml b/src/main/java/META-INF/application-template.xml index eb6703a81..efc2bfb31 100644 --- a/src/main/java/META-INF/application-template.xml +++ b/src/main/java/META-INF/application-template.xml @@ -1,366 +1,367 @@ - - + + - - + + - - + + - - + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - + + + + + - - + + - - - - - - - + 节点下也可包含非节点. + 非其节点可以通过@Resource(name="properties.xxxxxx")进行注入, 被注解的字段类型只能是AnyValue、AnyValue[] + --> + + + + + + - - + + - - + + - - + + - - - - - - - - - - - + + + + + + + + + + + - - + + - - - + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + diff --git a/src/main/java/org/redkale/cache/spi/CacheManagerService.java b/src/main/java/org/redkale/cache/spi/CacheManagerService.java index 3e6a89f33..100630d29 100644 --- a/src/main/java/org/redkale/cache/spi/CacheManagerService.java +++ b/src/main/java/org/redkale/cache/spi/CacheManagerService.java @@ -32,7 +32,6 @@ import org.redkale.util.AnyValue; import org.redkale.util.RedkaleException; import org.redkale.util.ThrowSupplier; import org.redkale.util.TypeToken; -import org.redkale.util.Utility; /** * 缓存管理器 @@ -110,7 +109,7 @@ public class CacheManagerService implements CacheManager, Service { if (this.enabled) { this.localSource.init(conf); String remoteSourceName = conf.getValue("remote"); - if (remoteSource == null && Utility.isNotBlank(remoteSourceName)) { + if (remoteSource == null && remoteSourceName != null) { this.broadcastable = conf.getBoolValue("broadcastable", true); CacheSource source = application.loadCacheSource(remoteSourceName, false); if (source == null) {