2021与蓝度共同重构项目,服务端
liuhaonan
2022-01-18 51b53373d150e4107a51fcf502d0598b7d82c455
sandu-common/src/main/java/com/sandu/common/security/config/SecurityProperties.java
@@ -1,5 +1,6 @@
package com.sandu.common.security.config;
import cn.hutool.core.util.StrUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
@@ -36,7 +37,7 @@
    private Long tokenValidityInSeconds;
    /**
     * 在线用户 key,根据 key 查询 redis 中在线用户的数据
     * 在线用户 model name
     */
    private String onlineKey;
@@ -46,6 +47,9 @@
    private boolean cacheOnline = false;
    public String getTokenStartWith() {
        if(StrUtil.isBlank(tokenStartWith)){
            return "";
        }
        return tokenStartWith + " ";
    }
}