摘要: 由于JQuery中,提交表单是像下面这样的: $('#myform').submit() 所以,想当然的认为,重置表单,当然就是像下面这样子喽: $('#myform').reset() 但是,不幸的是,这样写的话,会有一个让你很郁闷的结果,那就是,表单无法重置! 后来,上网查了一下,说是,JQue 阅读全文
posted @ 2020-12-22 13:49 浅笑19 阅读(194) 评论(0) 推荐(0) 编辑
摘要: public static boolean CheckMobilePhoneNum(String phoneNum) { String regex = "^(1[3-9]\\d{9}$)"; if (phoneNum.length() == 11) { Pattern p = Pattern.com 阅读全文
posted @ 2020-12-22 13:47 浅笑19 阅读(1852) 评论(0) 推荐(0) 编辑
摘要: 1、添加pom依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> 2、获取smtp信息 我这里用的是qq 阅读全文
posted @ 2020-12-22 13:12 浅笑19 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 问题:The bean 'xxx' could not be injected as a 'com.github.service.xx' because it is a JDK dynamic proxy 先说说问题的来源吧,当前这个问题是我在springboot配置事务时出现的,本来我搭建了一个s 阅读全文
posted @ 2020-12-22 13:01 浅笑19 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 第一种写法(1): 原符号 < <= > >= & ' "替换符号 &lt; &lt;= &gt; &gt;= &amp; &apos; &quot;例如:sql如下: create_date_time >= #{startTime} and create_date_time <= #{endTim 阅读全文
posted @ 2020-12-22 12:58 浅笑19 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 配置文件application.properties中相关配置信息可以在部署以后修改,引用配置信息可以在代码和mybatis的映射文件中 1.JAVA代码 可以通过变量去读取 application.properties文件中配置信息 applicaiton.properties文件: public 阅读全文
posted @ 2020-12-22 12:56 浅笑19 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 1、生成的字符串每个位置都有可能是str中的一个字母或数字,需要导入的包是import java.util.Random; //length用户要求产生字符串的长度 public static String getRandomString(int length){ String str="abcde 阅读全文
posted @ 2020-12-22 12:54 浅笑19 阅读(993) 评论(0) 推荐(0) 编辑
摘要: //对密码进行 md5 加密 String md5Password = DigestUtils.md5DigestAsHex(user.getPassword().getBytes()); 阅读全文
posted @ 2020-12-22 12:53 浅笑19 阅读(1702) 评论(0) 推荐(1) 编辑