会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
phyxis_xu
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2016年3月9日
FTP 上传资源
摘要: /** * 把资源文件上传到CDN */ public static boolean ftpUpload(String ip,String username,String password,String fileName,int port,String srcPath){ FTPClient ftp
阅读全文
posted @ 2016-03-09 09:21 phyxis_xu
阅读(748)
评论(0)
推荐(0)
2016年3月7日
2015华硕”硕士生”笔试题(瓶子问题)
摘要: 饮料卖两块钱一瓶,两个空瓶子或者四个瓶盖均可以换一瓶新的饮料。10块钱可以喝多少瓶饮料? public static int getDrinkCount(int money ,int price){ int bottleCount = 2; int capCount = 4; int bottle
阅读全文
posted @ 2016-03-07 14:09 phyxis_xu
阅读(379)
评论(0)
推荐(0)
2016年3月1日
Ajax 请求
摘要: $.ajax({ type: "POST", dataType: "json", url: "${base}game/count_gameActivate", //请求的处理数据 async: false, data: condition, //传入的参数,第一个参数就是分页的页数,第二个参数为排序
阅读全文
posted @ 2016-03-01 15:06 phyxis_xu
阅读(130)
评论(0)
推荐(0)
2016年2月26日
键盘enter进行登录
摘要: 直接放在JSP中的js里面就可以了 $(document).keypress(function(event){ if(event.keyCode==13){ login(); } });
阅读全文
posted @ 2016-02-26 17:18 phyxis_xu
阅读(253)
评论(0)
推荐(0)
2016年2月17日
JMS - ActiveMQ简单实现
摘要: 基本概念 JMS是java的消息服务,JMS的客户端之间可以通过JMS服务进行异步的消息传输。 简单的说就是 消息的生产者把消息发布出来,消息的消费者把获取订阅的消息。 生产者实现: package com.ijiami.main.shiro.test; import javax.jms.Conne
阅读全文
posted @ 2016-02-17 16:09 phyxis_xu
阅读(225)
评论(0)
推荐(0)
list 实现队列 、栈
摘要: package com.ijiami.main.shiro.test; import java.util.ArrayList; import java.util.List; /** * * @author Administrator * list 实现栈、队列 * */ public class Q
阅读全文
posted @ 2016-02-17 11:18 phyxis_xu
阅读(359)
评论(0)
推荐(1)
【转】数据库SQL优化大总结之 百万级数据库优化方案
摘要: 网上关于SQL优化的教程很多,但是比较杂乱。近日有空整理了一下,写出来跟大家分享一下,其中有错误和不足的地方,还请大家纠正补充。 这篇文章我花费了大量的时间查找资料、修改、排版,希望大家阅读之后,感觉好的话推荐给更多的人,让更多的人看到、纠正以及补充。 1.对查询进行优化,要尽量避免全表扫描,首先应
阅读全文
posted @ 2016-02-17 10:12 phyxis_xu
阅读(213)
评论(0)
推荐(0)
2016年2月16日
求水仙花数
摘要: /** * 求水仙花数 * @param left * @param right */ static void checkFlowerNumber(int left,int right){ for (int i = left; i <= right; i++) { char[] ch = (i+""
阅读全文
posted @ 2016-02-16 15:36 phyxis_xu
阅读(136)
评论(0)
推荐(0)
求质素
摘要: /** * 求质数 * @param left * @param right */ static void checkPrime(int left,int right){ int count = 0; for (int i = left; i <= right; i++) { boolean fla
阅读全文
posted @ 2016-02-16 15:36 phyxis_xu
阅读(125)
评论(0)
推荐(0)
快速排序
摘要: /** * 快速排序 * @param numbers * @param left * @param right */ static void quickSort(int[] numbers,int left,int right){ System.out.println(Arrays.toStrin
阅读全文
posted @ 2016-02-16 15:35 phyxis_xu
阅读(92)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告