- 博客(9)
- 收藏
- 关注
原创 文件上传 - Apache commons FileUpload 模块解读
前言大部分后台开发的同学都自己做过或者接触过文件上传,不知道是不是也有下面这些疑问。文件上传和普通的 GET、POST 请求有什么区别?HTTP是如何处理很大的文件?会不会占用很大的带宽和内存?如果你也有这些疑问,适合继续阅读。整体过程一个含有上传按钮的页面<form method="POST" enctype="multipart/form-data" action="xxx"> Fil
2017-12-21 19:23:40
575
原创 mysql 基本操作
[size=large]1. 表操作[/size][size=medium]1.1创建表[/size][code="sql"]create table user (`id` int auto_increment not null comment 'id',`class_id` int comment '班级id',`name` varchar not null commen...
2013-03-03 20:27:14
122
原创 mac nginx 安装
1. 在官网下载源文件在http://nginx.org/en/download.html下载nginx2. 解压缩tar -xzf nginx-1.2.5.tar.gz3. 进入解压后文件目录,修改操作权限 chmod a+rwx4. 生成安装配置./configure --without-http_rewrite_module5. make安装...
2012-12-29 11:03:39
123
原创 螺旋式输出二维数组
1. 给出一个二维数组,例子如下:{{2, 3, 4}, {11, 12, 5}, {10, 13, 6}, {9, 8, 7}};要求按照顺时针螺旋式输出,结果如下:2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,怎样实现?网上搜到的题目。...
2012-09-18 00:22:24
334
原创 二维数组螺旋式输出
[code="java"]package algorithm;public class ArrayHelix { public static Integer[][] doubleArray = new Integer[][]{{2, 3, 4}, {11, 12, 5}, {10, 13, 6}, ...
2012-09-18 00:09:11
544
原创 2012-9-9 最大子序列问题
1. 使用O(n)时间复杂度求最大子序列问题。比如数组{1, -2, 3, 10, -4, 7, 2, -5}最大子序列为 {3,10,-4,7,2}-----------------我昨天实现了下:http://zhang-saiyong.iteye.com/blog/1674650...
2012-09-10 21:44:43
112
原创 O(n)最大子序列问题
[code="java"]package algorithm;/** * o(n)得到最大子序列问题 * @author sai * */public class MaxSubSequence { public static Integer[] sequence = {10, -2, 3, 10, -4, 7, 2, -5}; public stati...
2012-09-09 20:38:39
166
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人