SpringBoot @valid 参数校验 ~~~java 空检查 @Null 验证对象是否为null @NotNull 验证对象是否不为null, 无法查检长度为0的字符串 @NotBlank 检查约束字符串是不是Null还有被Trim的长度是否大于0,只对字符串,且会去掉前后空格. @NotE ...
分类:
编程语言 时间:
2019-09-01 16:45:00
阅读次数:
682
1 #define _for(i,a,b) for(int i = (a);i b;i --) 3 class Solution 4 { 5 public: 6 vector findNumOfValidWords(vector& words, vector& puzzles) 7 { 8 map ... ...
分类:
其他好文 时间:
2019-09-01 14:53:01
阅读次数:
117
/** * 缩略图上传 */ public static function addPic() { $inputData = request()->all(); $rules = [ 'main_img' => [ 'image','max:10240' ] ]; $validator = Valid ...
分类:
其他好文 时间:
2019-08-31 19:03:30
阅读次数:
91
Assembly language is processor specific. This means that a program written in assembly language will not work on computers with different processor ar ...
分类:
其他好文 时间:
2019-08-31 01:13:59
阅读次数:
128
Description: A boomerang is a set of 3 points that are all distinct and not in a straight line. Given a list of three points in the plane, return whet ...
分类:
其他好文 时间:
2019-08-29 13:26:50
阅读次数:
78
Description: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of th ...
分类:
其他好文 时间:
2019-08-28 18:23:42
阅读次数:
89
一:针对不同的文件类型 location ~* \.(gif|jpg|png|swf|flv)$ { valid_referers none blocked www.jzxue.com jzxue.com ; if ($invalid_referer) { rewrite ^/ http://www ...
分类:
其他好文 时间:
2019-08-27 17:22:57
阅读次数:
103
Change Assembly Version in a compiled .NET assembly You can use ILMerge: ILMerge.exe Foo.dll /ver:1.2.3.4 /out:Foo2.dll A valid reason to do this is t ...
分类:
Web程序 时间:
2019-08-26 18:09:38
阅读次数:
147
Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Example 2: Note:You may assume the string contains only ...
分类:
其他好文 时间:
2019-08-24 09:59:55
阅读次数:
90
Validate if a given string can be interpreted as a decimal number. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true" ...
分类:
其他好文 时间:
2019-08-24 00:35:35
阅读次数:
80