|
|
@@ -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:";
|
|
|
|
|
|
/**
|