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 + " "; } }