摘要: Java过滤ip,只允许配置的ip能够被访问 第一先创建过滤类 实现Filter就会有init(),doFilter(),destroy()三个方法 private String ips; public String getIps() { return ips; } public void setI 阅读全文
posted @ 2020-11-07 16:43 啊茶丶 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: 生成随机数的工具类贴在最后 控制层代码 /** * 生成验证码 * * @param request * @param response */ @RequestMapping("/verificationCode") public void getVerify(HttpServletRequest 阅读全文
posted @ 2020-11-07 16:23 啊茶丶 阅读(211) 评论(0) 推荐(0) 编辑