摘要: <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.51</version> </dependency>————————————————————————————————— 阅读全文
posted @ 2020-01-07 18:36 猿码哥 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 一 每个时间点的表达式 每隔5秒执行一次:0/5 * * * * ? 每隔1分钟执行一次:0 */1 * * * ? 每天23点执行一次:0 0 23 * * ? 每天凌晨1点执行一次:0 0 1 * * ? 每月1号凌晨1点执行一次:0 0 1 1 * ? 每月最后一天23点执行一次:0 0 23 阅读全文
posted @ 2020-01-07 16:41 猿码哥 阅读(1323) 评论(0) 推荐(0) 编辑
摘要: 在忘记root密码的时候,可以这样 以windows为例: 1. 关闭正在运行的MySQL服务。 2. 打开DOS窗口,转到mysql\bin目录。 3. 输入mysqld --skip-grant-tables 回车。--skip-grant-tables 的意思是启动MySQL服务的时候跳过权限 阅读全文
posted @ 2020-01-05 21:31 猿码哥 阅读(125) 评论(0) 推荐(0) 编辑
摘要: /** * encrypted = encrypted.replaceAll("%2B", "\\+"); * 这个方法主要是为了解决javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when de 阅读全文
posted @ 2020-01-05 18:30 猿码哥 阅读(6530) 评论(0) 推荐(0) 编辑
摘要: public R getVerifyCode(String phone) { if (redisTemplate.hasKey(Constant.PREFIX_VER + phone)) { return R.error("请不要频繁发送短息"); } else { // 生成6位验证码 Strin 阅读全文
posted @ 2020-01-02 21:19 猿码哥 阅读(270) 评论(0) 推荐(0) 编辑
摘要: import com.for.vsolution.hx.travel.common.constant.EncryptionTypeEnum;import com.for.vsolution.hx.travel.common.constant.MyRuntimeException;import com 阅读全文
posted @ 2019-12-27 10:03 猿码哥 阅读(224) 评论(0) 推荐(0) 编辑
摘要: import com.alibaba.excel.EasyExcelFactory;import com.alibaba.excel.ExcelWriter;import com.alibaba.excel.context.AnalysisContext;import com.alibaba.exc 阅读全文
posted @ 2019-12-13 11:11 猿码哥 阅读(1607) 评论(0) 推荐(0) 编辑
摘要: 1 判断list 中有重复的元素可以用hashSet List<Integer> list = new ArrayList<>(); list.add(1); list.add(1); list.add(2); list.add(3); list.add(3); list.add(2); HashS 阅读全文
posted @ 2019-11-25 17:08 猿码哥 阅读(22450) 评论(0) 推荐(1) 编辑
摘要: @RestController@Api(value = "公共接口",description = "公共接口")public class CommonController { private static Logger logger = LogManager.getLogger(CommonCont 阅读全文
posted @ 2019-11-25 16:04 猿码哥 阅读(120) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://my 阅读全文
posted @ 2019-11-25 14:40 猿码哥 阅读(227) 评论(0) 推荐(0) 编辑