![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其他
文章平均质量分 53
others
文丑颜不良啊
平平无奇的Java开发小白
展开
-
Redis 工具实用篇
将 Redis 的常用方法封装为一个工具类,在自己的项目中可以使用。 import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.sprin原创 2021-10-27 22:07:31 · 316 阅读 · 0 评论 -
使用简单运算进行登录验证
需求:使用简单的加减乘除运算进行后端系统的登录验证。 效果: 为避免数字 0 出现在除法运算的除数的位置,我们仅支持加减乘三种运算,由于是后台内部人员使用的系统,所以没做太难的处理。 具体的代码实现和上一篇文章基本相同 图片验证码_jiaomubai的博客-CSDN博客 同样提供两个接口: 1.获取验证码接口: import lombok.extern.slf4j.Slf4j; import sun.misc.BASE64Encoder; import javax.imageio.Ima原创 2021-10-27 21:58:04 · 333 阅读 · 0 评论 -
使用图片验证码进行登录验证
需求:后端系统登录时使用图片验证码验证登录 效果: 使用 4 位数字加字母组合验证码登录,相关代码为: import cn.hutool.captcha.CaptchaUtil; import cn.hutool.captcha.LineCaptcha; @RequestMapping("/getCode") public ResultVO getCode(HttpServletRequest request, HttpServletResponse response) { Strin原创 2021-10-27 21:44:56 · 3344 阅读 · 1 评论