本文介绍基于Spring Boot和JDK8编写一个AOP,结合自定义注解实现通用的接口参数校验。 缘由 目前参数校验常用的方法是在实体类上添加注解,但对于不同的方法,所应用的校验规则也是不一样的,例如有一个AccountVO实体: publicclassAccountVO{privateStrin ...
分类:
编程语言 时间:
2020-02-07 10:23:59
阅读次数:
92
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds a ...
分类:
数据库 时间:
2020-02-04 11:05:13
阅读次数:
91
PAT 甲级 Advanced 1037 Magic Coupon (25) [贪?算法] ...
分类:
编程语言 时间:
2020-01-30 21:26:35
阅读次数:
95
题目链接:https://ac.nowcoder.com/acm/contest/3570/H #include <iostream> #include <algorithm> #include <string> #include <string.h> #include <vector> #incl ...
分类:
其他好文 时间:
2020-01-29 21:19:01
阅读次数:
132
CF1110E Magic Stones 题目描述 一次操作选择1<i<n,使 $ c_i $ 变为 $ c_i = c_{i-1} + c_{i+1} - c_i $ 是否能做若干次操作,使每个 $ c_i $ 和 $ t_i $ 相等? 数据范围: ...
分类:
其他好文 时间:
2020-01-29 00:45:43
阅读次数:
65
bzoj 2553: [BeiJing2011]禁忌 Description Magic Land上的人们总是提起那个传说:他们的祖先John在那个东方岛屿帮助Koishi与其姐姐Satori最终战平。而后,Koishi恢复了读心的能力…… 如今,在John已经成为传说的时代,再次造访那座岛屿的人们 ...
分类:
其他好文 时间:
2020-01-28 14:11:03
阅读次数:
78
avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt): 1)将原始数据包作为解码器的输入 2)该函数在内部会复制AVCodecContext的相关字段(具体有哪些字段,起什么用,俺也不知道。。。),这些字段会影响每个包的解 ...
分类:
其他好文 时间:
2020-01-28 09:26:23
阅读次数:
416
1 题目 2 思路 3 代码事项 用户类 子类:群主类 调用 ...
分类:
编程语言 时间:
2020-01-27 22:22:11
阅读次数:
101
``` 30) { $current =$this->$property; //notice: $this->property(without $) will create a new attribute called property, $property $this->$property= $v... ...
分类:
Web程序 时间:
2020-01-27 20:43:06
阅读次数:
121
1058 A+B in Hogwarts (20分) 题目: If you are a fan of Harry Potter, you would know the world of magic has its own currency system as Hagrid explained it ...
分类:
其他好文 时间:
2020-01-27 00:20:32
阅读次数:
91