摘要:        
public Map loginVerification(String mobile, String code) { //1. 从Redis中获取验证码 String redisCode = redisTemplate.opsForValue().get("CHECK_CODE_" + mobile    阅读全文
posted @ 2022-04-29 10:31
twb_QAQZ
阅读(81)
评论(0)
推荐(0)
        
            
        
        
摘要:        
调用spring的自动装配 application.yml tanhua: msg: smsSignId: templateId: appcode: 配置类 @ConfigurationProperties(prefix = "tanhua.msg") @Data public class MsgP    阅读全文
posted @ 2022-04-29 10:30
twb_QAQZ
阅读(442)
评论(0)
推荐(0)
        
            
        
        
摘要:        
    阅读全文
posted @ 2022-04-29 10:24
twb_QAQZ
阅读(64)
评论(0)
推荐(0)
        
            
        
        
摘要:        
登陆完成:通过JWT令牌存储用户信息,并随请求在app和服务器间传输 public class JwtUtils { /** * TOKEN的有效期1小时(S) */ private static final int TOKEN_TIME_OUT = 1 * 3600; /** * 加密KEY */    阅读全文
posted @ 2022-04-29 10:22
twb_QAQZ
阅读(144)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号