吴树波 vor 2 Wochen
Ursprung
Commit
f01c132d90

+ 2 - 2
fs-common/src/main/java/com/fs/common/core/redis/RedisCacheTenant.java

@@ -22,8 +22,8 @@ import java.util.stream.Collectors;
 public class RedisCacheTenant<T> {
     @Autowired
     public RedisTemplate redisTemplate;
-    @Value("${tenant-id}:1")
-    private Long ymlTenantId;
+    @Value("#{'${tenant-id:}'.isEmpty() ? null : '${tenant-id:}'}")
+    private String ymlTenantId;
     private static final String PARENT_KEY = "tenant:cache:";
 
     /**