java
饭九钦vlog
凡事要坚持到底,你才能一路生花。
展开
-
date时间差比较方法
public boolean check(Date start,Date end){long c=end.gettime()-start.gettime();long s=c/1000;if(s>120){true}else{false}}原创 2020-04-16 10:18:32 · 751 阅读 · 0 评论 -
mybatis查询时间对比数据库时间变成00:00:00,解决办法
<resultMap id="BaseResultMap" type="com.example.tsfunproj.entity.TelephoneCode"> <result column="yzcode" property="yzcode"/> <result column="create_time" property="createtime...原创 2020-04-16 09:20:11 · 1090 阅读 · 0 评论 -
写手机验证码时间验证方法
<select id="getNumber" resultType="java.lang.Integer"> select count(*) from telephonecode where create_time>=#{starttime} and create_time<=#{endtime} and telephone=#{teleph...原创 2020-04-15 19:11:41 · 480 阅读 · 0 评论 -
pom中shiro依赖需要添加的
<dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.4.0</version></dependency>原创 2020-03-20 15:26:02 · 1977 阅读 · 0 评论 -
MySQL建立表实间类ON UPDATE CURRENT_TIMESTAMP,这个效果
`createtime` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `updatetime` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,这个效果是表时间字段都每次更新为最新的时间,影响update()方法...原创 2020-04-13 17:31:44 · 626 阅读 · 0 评论 -
必须要有一个小写字母,一个大写字母和一个数字,并且是8-16位(java 正则)
String regex="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[A-Za-z0-9]{8,16}$"原创 2020-04-10 13:49:28 · 1003 阅读 · 0 评论