自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 近期学习笔记

2018.10.081.自定义事件,一般是继承ApplicationEvent抽象类2.定义事件监听器,一般是实现ApplicationListener接口3.配置监听器,启动的时候,需要把监听器加入到Spring容器中4.发布事件,使用ApplicationContext.publishEvent发布事件配置监听器1.SpringApplication.addListeners 添...

2018-11-26 19:37:12 130

原创 函数式编程实现取得类中任意元素的百分比

private List<AppPercentageOrAmountModel> getCountListByType(List<SecurityPersionDetail> allGuards, Function<? super SecurityPersionDetail,?> function,String number){ List&l...

2018-11-20 09:59:00 135

原创 基于注解的springboot传参验证

model层:package com.syn.model;import com.alibaba.fastjson.annotation.JSONField;import org.springframework.format.annotation.DateTimeFormat;import javax.validation.constraints.Pattern;import j...

2018-08-09 10:50:30 336

原创 用redis生成流水单号

package com.service;import com.syn.utils.JedisUtil;import java.text.SimpleDateFormat;import java.util.Date;/** * 生成流程单号相关 * @author * 参数1.基于枚举的类型编号 * 参数2. */public class SystemSeria...

2018-08-09 10:37:32 1565

原创 mysql日期

update users set strDate=DATE_ADD(now(), INTERVAL 1 YEAR) where id=10000 DATE_ADD(日期, INTERVAL 1 YEAR)   year,day都可以

2018-08-09 09:26:04 157

原创 redis 学习记录

redis常用命令:keys * 返回所有key,此处可以写正则表达式ttl key 查看key有效时间,-1为永久,-2为不存在,正常返回数字秒persist key 在有效期内使其变为永久其实验证码就是用redis来做的,将其设置有效期后给予提示,有效期为60秒。setnx,hsetnx....NOT EXIST 不存在才会加,存在则不会覆盖//删除当前数据库中的所有...

2018-07-30 15:13:12 141

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除