一:主要任务 1.说明 @RequestBody 映射请求体到java方法的参数 日期类型参数的处理 @Valid注解 BindingResult验证请求参数的合法性并处理校验结果 二:@RequestBody 1.@RequestBody 测试类 User.java 控制类 三:日期类型的处理 1 ...
分类:
编程语言 时间:
2018-09-26 00:09:50
阅读次数:
225
问题现象 ECS Windows系统服务器,在IIS 7.5下的配置的FTP如果绑定了域名,通过IP等方式连接FTP时如果出现“530 valid hostname is expected”或者“503 Login with USER first”报错。 解决方案 1.若是FTP绑定的域名是ftp. ...
Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: IP address is consist of 4 parts w ...
分类:
其他好文 时间:
2018-09-23 11:31:47
阅读次数:
148
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont ...
分类:
其他好文 时间:
2018-09-21 23:01:25
阅读次数:
193
https://www.youtube.com/watch?v=iqe1JSjyldo Your answer false Expected answer true class Solution { public boolean isValidSudoku(char[][] board) { // ... ...
分类:
其他好文 时间:
2018-09-20 18:49:54
阅读次数:
133
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont ...
分类:
其他好文 时间:
2018-09-18 12:35:46
阅读次数:
169
这个题只存储26个字母的,之前用的256个字符,所以可以直接用s[i]这种作为坐标,但现在只存储在26个中,坐标值是0到25,必须减去'a'才行,不减的话可能是100多的assic码 https://blog.csdn.net/fly_yr/article/details/49886391 ...
分类:
其他好文 时间:
2018-09-15 23:19:11
阅读次数:
175
题目: Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. 给定非空字符串s,您最多可以删除一个字符。 判断你是否可以成为回文。 E ...
分类:
其他好文 时间:
2018-09-13 10:21:34
阅读次数:
143
Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true Note: It is intended for the ...
分类:
其他好文 时间:
2018-09-12 00:00:24
阅读次数:
335
给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。 有效字符串需满足: 注意空字符串可被认为是有效字符串。 示例 1: 示例 2: 示例 3: 示例 4: 示例 5: 当时想想好复杂啊,结果以提交报错执行时间太长,回头想想是我忽略了一些东西。由于限定条件内 ...
分类:
其他好文 时间:
2018-09-10 13:38:49
阅读次数:
232