摘要:        
问题: 前面已经实现了移动端手机验证码登录,随机生成的验证码我们是保存在HttpSession中的,但是存在HttpSession中就无法设置过期时间,就需要对这一块的功能进行优化。 优化步骤: 1. 在UserController中注入RedisTemplate对象,用于操作Redis @Auto    阅读全文
posted @ 2022-04-09 19:58
twb_QAQZ
阅读(80)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1.引依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId> </dependency> 2.在yml中设置缓存过期时间 spring    阅读全文
posted @ 2022-04-09 19:51
twb_QAQZ
阅读(142)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1.依赖: <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-boot-starter</artifactId> <version>4.0.0-RC1</version    阅读全文
posted @ 2022-04-09 19:31
twb_QAQZ
阅读(67)
评论(0)
推荐(0)
        
            
        
        
摘要:        
项目总结: 1、前端:不涉及具体代码编写,主要有以下 2 部分工作: 1.1 在项目优化阶段采用 nginx服务器部署前端资源,并且配置了 反向代理 将前端请求代理到后端服务; 优点:1.1 统一了服务的入口 1.2 隐藏了后端的服务器 1.2 前端主要发送 rest风格 的 ajax请求。 2、后    阅读全文
posted @ 2022-04-09 19:23
twb_QAQZ
阅读(271)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号