【题目】 Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 【题意】 给出一个string,返回符合要求的IP地址的集 ...
分类:
其他好文 时间:
2019-01-25 01:06:00
阅读次数:
150
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 org.apach ...
分类:
编程语言 时间:
2019-01-24 13:24:54
阅读次数:
186
通过java原生的@Valid注解和spring的@ControllerAdvice和@ExceptionHandler实现全局异常处理的方法: controller中加入@Valid注解: 接受entity中加入@NotNull注解:(验证还有很多,这里是举例说明) 全局处理工具类加入@Contr ...
分类:
编程语言 时间:
2019-01-24 00:21:05
阅读次数:
1586
Given the coordinates of four points in 2D space, return whether the four points could construct a square. The coordinate (x,y) of a point is represen ...
分类:
其他好文 时间:
2019-01-16 17:23:28
阅读次数:
155
在搭建git服务器安装数据库的时候,执行命令 yum install Percona-Server-shared-55-5.5.45-rel37.4.el6.x86_64.rpm Percona-Server-client-55-5.5.45-rel37.4.el6.x86_64.rpm Perco ...
分类:
Web程序 时间:
2019-01-16 11:40:16
阅读次数:
216
命令:rmp qa|grep vim #查看是否已经安装vim 命令:yum -y install vim #安装vim命令 注:该操作需要连接网络!刚刚安装CentOS 7并且初次接触的朋友可能会报 Cannot find a valid baseurl for repo:的错误, 这是因为连接不 ...
分类:
系统相关 时间:
2019-01-15 00:50:40
阅读次数:
217
Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print all valid phone numbers. You may ...
分类:
其他好文 时间:
2019-01-13 17:08:50
阅读次数:
184
class Solution { public boolean isValid(String s) { if(s == null) return false; Stack stack = new Stack(); String left = "([{"; String right = ")]}"; ...
分类:
其他好文 时间:
2019-01-11 16:04:25
阅读次数:
182
上一篇文章介绍了springmvc的get请求参数可以是一个自定的对象。那么如何限制这个对象里的参数是否必传呢? 方法一:在代码逻辑里取出对象里的这个值,手动进行判断 方法二:使用@Valid注解,在接口请求的时候让Spring自己进行判断 比较 如果用上面两个方法进行非空判断,当参数传的是空的时候 ...
分类:
编程语言 时间:
2019-01-09 15:42:07
阅读次数:
297
具体来说,就是添加了些规则去限制HTTP头的规范性 参考这里 具体来说: org.apache.tomcat.util.http.parser.HttpParser#IS_NOT_REQUEST_TARGET[]中定义了一堆not request target 转换过来就是以下字符(对应10进制AS ...
分类:
其他好文 时间:
2019-01-03 23:08:23
阅读次数:
246