码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
java防止sql注入
public final static String filterSQLInjection(String s) { ??? if (s == null || "".equals(s)) { ??????? return ""; ??? } ??? try { ??????? s = s.trim().replaceAll("</?[s,S][c,...
分类:数据库   时间:2015-05-04 18:26:03    阅读次数:151
简单和复杂的lambda表达式
今天遇到一个问题,代码是这样的。 ????????public?List<BillName>?QueryBill(int[]?id?=?null,?string[]?name?=?null) ????????{ ????????????List<BillName>?queryRe...
分类:其他好文   时间:2015-05-04 18:23:25    阅读次数:146
java微信签名,验证微信发送的signature,还有获取access_token和ticket
controller @RequestMapping("/weixin") ????@ResponseBody ????public?String??weixin(String?signature,String?timestamp? ????????????,String?nonce,String?echostr)?throws?N...
分类:微信   时间:2015-05-04 18:22:17    阅读次数:269
Oracle中的MD5加密
一、技术点  1、 DBMS_OBFUSCATION_TOOLKIT.MD5  DBMS_OBFUSCATION_TOOLKIT.MD5是MD5编码的数据包函数,但偶在使用select DBMS_OBFUSCATION_TOOLKIT.MD5(input_string =>'abc') a from Dual时,却有错误提示,看来该函数只能直接在程序包中调用,不能直接应用于SELECT语句。...
分类:数据库   时间:2015-05-04 18:20:10    阅读次数:149
java中String对象的长度
java中String的长度 使用 Integer.MAX_VALUE Integer.MAX_VALUE = 2147483647 :   String   和   StringBuffer  获得长度的方法:       public   int   length()      Returns   the   length   of   this   string...
分类:编程语言   时间:2015-05-04 18:16:01    阅读次数:117
leetcode--Add binary
题目描述: Add Binary Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 解题思路: 求两个二进制组成的数字的和。首先有几种特殊的情况,a、b均为空,a为空、b非空,a非空、b为空;我们...
分类:其他好文   时间:2015-05-04 18:13:48    阅读次数:154
二维码换行
1、代码 <% String data = request.getParameter("data"); if (data != null) { int width = 128; int height = 128; String format = "png"; Hashtable hints = n...
分类:其他好文   时间:2015-05-04 18:12:18    阅读次数:155
组合模式
组合对象数据结构: UML类图: 实例实现代码: abstract class Component { protected string name; public Component(string name) { this.name = name; } ...
分类:其他好文   时间:2015-05-04 18:08:43    阅读次数:142
Request 对象的主要方法:
setAttribute(String name,Object):设置名字为 name 的 request 的参数值 getAttribute(String name):返回由 name 指定的属性值 getAttributeNames():返回 request 对象所有属性的名字集合,结果是一个枚举的实例 getCookies():返回客户端的所有 Cookie 对象,结果是一个 Cooki...
分类:其他好文   时间:2015-05-04 18:03:24    阅读次数:170
c# random string
var randomString= Path.GetRandomFileName();返回ar1opgzw.1gp详细http://www.dotnetperls.com/random-string
分类:Windows程序   时间:2015-05-04 17:37:14    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!