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))
public class AuthController {
@Value("${single.login:true}")
@Value("${single.login}")
private Boolean singleLogin;
@Value("${yshop.notify.sms.enable}")
private Boolean enableSms;

View File

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

View File

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

View File

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