- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 MySQL:Duplicate entry '1-2' for key 'PRIMARY' 错误
今天用annotation做多对多关联时,发现错误,上网询问分析后发现
2014-08-13 11:55:18 3894
原创 分页算法1
public static int[] getStep(int count,int size,int index){ //总页数,每页条数,选中是哪一页 int a=size/2; //获取中间位置 if(index return new int[]{1, size}; } else if(index>=(count-a)){ return new
2014-07-29 09:58:10 311
原创 通过邮箱点击激活码进行帐号验证
/** * 发送激活邮件 * @param recipients * @param subject * @param html * @return */ public static boolean sendMail(String recipients, String subject, String html) { try { // 1.创建配置
2014-07-28 13:47:55 736
转载 MD5加密
public final static String encode(String s) { char hexDigits[]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; try { byte[] btInput = s.getByt
2014-07-23 13:33:23 373
空空如也
验证码验证过程出错,求教
2014-07-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人