feat: 修改property加载方式
This commit is contained in:
-2
@@ -4,7 +4,6 @@ import cn.hutool.core.collection.CollUtil;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
@@ -17,7 +16,6 @@ import java.util.Set;
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "zlt.datascope")
|
||||
@Data
|
||||
@Component
|
||||
public class DataScopeProperties {
|
||||
private static final Set<String> INGORE_SQL_ID = ImmutableSet
|
||||
.of("com.central.user.mapper.findRolesByUserId"
|
||||
|
||||
-2
@@ -4,7 +4,6 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -18,7 +17,6 @@ import java.util.List;
|
||||
@Getter
|
||||
@ConfigurationProperties(prefix = "zlt.tenant")
|
||||
@RefreshScope
|
||||
@Component
|
||||
public class TenantProperties {
|
||||
/**
|
||||
* 是否开启多租户
|
||||
|
||||
Reference in New Issue
Block a user