摘要: 例如 url 为 http://mywebsite.com/index.php?a=1&b=2&c=3 web形式下访问url地址,使用$_GET是可以获取到所有的参数 然而在linux下 curl http://mywebsite.com/index.php?a=1&b=2&... 阅读全文
posted @ 2016-07-08 15:20 可啦思客 阅读(298) 评论(0) 推荐(0)
摘要: 题目描述: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example: Given a = 1 and b = 2, return 3. ... 阅读全文
posted @ 2016-07-04 17:24 可啦思客 阅读(141) 评论(0) 推荐(0)
摘要: 本文搬运自stackoverflow,原帖戳这里 首先是简要描述: @NotNull://CharSequence, Collection, Map 和 Array 对象不能是 null, 但可以是空集(size = 0)。@NotEmpty://CharSequence, Collecti... 阅读全文
posted @ 2016-03-18 11:06 可啦思客 阅读(418) 评论(0) 推荐(0)
摘要: 今天按照《manning spring in action 4th edition》的5.4.2部分进行表单的validation测试,按照书上的说法,spring4可以实现validation是因为对 JSR 303 - Bean Validation规范进行了支持。使用Java Valida... 阅读全文
posted @ 2016-03-18 10:24 可啦思客 阅读(335) 评论(0) 推荐(0)
摘要: Spring MVC 无XML(纯 Java)配置入门示例 本示例是从《Spring in Action, Fourth Edition》一书而来,涉及的是书中5.1节部分内容,书中其实说的很详细,但是没有工程实现细节的描述,这篇博文记录了我自己的实现过程,也算是书本的一(gou... 阅读全文
posted @ 2016-02-26 23:18 可啦思客 阅读(483) 评论(0) 推荐(0)