2021年5月20日

java 检验手机号

摘要: /** * ^ 匹配输入字符串开始的位置 * \d 匹配一个或多个数字,其中 \ 要转义,所以是 \\d * $ 匹配输入字符串结尾的位置 */private static final Pattern HK_PATTERN = Pattern.compile("^(5|6|8|9)\\d{7}$") 阅读全文

posted @ 2021-05-20 17:14 UnmatchedSelf 阅读(578) 评论(0) 推荐(1) 编辑

生成验证码

摘要: @RequestMapping(value = "/getVerify") public void getVerify(HttpServletRequest request, HttpServletResponse response ) { //设置相应类型,告诉浏览器输出的内容为图片 respon 阅读全文

posted @ 2021-05-20 17:11 UnmatchedSelf 阅读(135) 评论(0) 推荐(0) 编辑

校验身份证

摘要: java校验身份证 /** * 判断身份证省份 */private static String[] cityCode = { "11", "12", "13", "14", "15", "21", "22", "23", "31", "32", "33", "34", "35", "36", "37 阅读全文

posted @ 2021-05-20 17:02 UnmatchedSelf 阅读(71) 评论(0) 推荐(0) 编辑

excel表格数据转成HTML格式得数据

摘要: excel.xls 表格数据转换成html格式得数据(不包含图片)首先先导入相应得pom包<!-- excel 转 html --><dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-scratchpad</artifactI 阅读全文

posted @ 2021-05-20 16:37 UnmatchedSelf 阅读(592) 评论(0) 推荐(0) 编辑

导航