task--单用户登录配置优化

This commit is contained in:
taozi
2020-06-08 09:06:17 +08:00
parent 2591a13a13
commit 69bce6fa59
7 changed files with 19 additions and 4 deletions

View File

@ -59,7 +59,7 @@ public class AuthController {
private Long expiration;
@Value("${rsa.private_key}")
private String privateKey;
@Value("${single.login:false}")
@Value("${single.login}")
private Boolean singleLogin;
private final SecurityProperties properties;
private final RedisUtils redisUtils;

View File

@ -45,7 +45,10 @@ spring:
#连接超时时间
timeout: 5000
#jwt
# 是否限制单用户登录
single:
login: false
#jwt
jwt:
header: Authorization

View File

@ -48,6 +48,10 @@ spring:
#连接超时时间
timeout: 5000
# 是否限制单用户登录
single:
login: false
#jwt
jwt:
header: Authorization