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

@ -74,7 +74,7 @@ import java.util.Map;
@RequiredArgsConstructor(onConstructor = @__(@Autowired)) @RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AuthController { public class AuthController {
@Value("${single.login:true}") @Value("${single.login}")
private Boolean singleLogin; private Boolean singleLogin;
@Value("${yshop.notify.sms.enable}") @Value("${yshop.notify.sms.enable}")
private Boolean enableSms; private Boolean enableSms;

View File

@ -124,7 +124,7 @@ public class YxUserServiceImpl extends BaseServiceImpl<YxUserMapper, YxUser> imp
private WxMaService wxMaService; private WxMaService wxMaService;
@Autowired @Autowired
private YxWechatUserService wechatUserService; private YxWechatUserService wechatUserService;
@Value("${single.login:true}") @Value("${single.login}")
private Boolean singleLogin; private Boolean singleLogin;
@Value("${yshop.notify.sms.enable}") @Value("${yshop.notify.sms.enable}")
private Boolean enableSms; private Boolean enableSms;

View File

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

View File

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

View File

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

View File

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

View File

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