- 博客(18)
- 问答 (1)
- 收藏
- 关注
原创 多表复杂查询分析过程
1.列出至少有一个员工的所有部门编号、名称,并统计出这些部门的平均工资、最低工资、最高工资分析:部门表:部门编号,名称员工表:count(员工编号),avg(工资),min(工资),max(工资)关联字段:部门.部门编号=员工.部门编号代码如下:select d.deptno,d.dname,count(e.empno),avg(sal),min(sal),max(sal)
2014-05-24 21:43:35 399
原创 CDLinux破解WPA/WPA2无线网络密码
破解前的准备工作:1、8187/8187L/3070芯片大功率网卡一块(就是我们俗称的“卡王”)2、破解软件CDLinux 3、CDLinux下载地址 http://www.syston.es/gratis/system/systonwpa.iso4.
2014-05-24 08:45:53 24252 6
原创 卖票系统同步问题
public class Ticket implements Runnable{ private int num = 50; @Override public void run() { while(true){ if(num > 0){ System.out.println(Thread.currentThread().getName() + "卖出第" + (51-
2014-05-18 22:20:16 590
原创 java猜拳游戏
import java.util.Scanner;/** * 猜拳游戏 * * @author Administrator * */public class Main { // 接收键盘输入 private Scanner s = new Scanner(System.in); //定义全局常量和全局变量,类里各方法都能用到 // 剪刀 public static
2014-05-18 19:47:09 529
原创 模拟主键递增类
/** * 模拟主键递增 * @author Administrator * */public class PrimaryKeyUtil { private static int id = 1; private static int xmlId=2; private static long onlyFileName = System.currentTimeMillis()
2014-05-17 17:45:50 391
原创 用List实现简单购物车类
import java.util.ArrayList;import java.util.List;import javax.servlet.http.HttpSession;/** * 购物车 * 现实中是用篮子或车来装商品的 * 好比内存中的List * 购物车封装对List的增删改,查在页面查看list即可 * @author Administrator * */pu
2014-05-17 17:43:10 2442 1
原创 联动下拉与选中回显效果
联动下拉与选中回显效果 商品搜索: 商品大类 ---请选择--- ${big.name } 商品小类 ---请选择--- 关键字【商品名称】 联动下拉脚本
2014-05-17 14:27:26 631
原创 EL表达式的param用法与二级分类展开收缩效果
Dao层接口import java.util.List;import com.zxg.vo.ItemType;//${param.name }适用于get和post请求public interface IItemTypeDao { /** 获取所有对象*/ List findAll();}Dao实现类
2014-05-17 14:22:16 678
原创 通用BaseDao设计
import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.ResultSetMetaData;import java.sql.SQLException;import java.util.ArrayList;import java.util.
2014-05-17 14:11:32 696
原创 post请求:静态include封装分页
<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin
2014-05-17 14:09:02 416
原创 post请求:jsp模拟数据库分页
<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin
2014-05-17 14:05:08 489
原创 get请求:jsp模拟数据库分页
<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin
2014-05-17 14:03:05 381
原创 debug调试的重要性
public static void startServer() throws Exception{ try{ ServerSocket ss = new ServerSocket(Integer.parseInt(ConfigUtil.getValue(ConfigUtil.COSTPORT))); while(true){ //为每个客户端启动每个线程,执行run方法
2014-05-17 13:22:29 2842
原创 解决IO流引起的界面卡住问题
import java.io.InputStream;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.io.OutputStream;import java.net.ServerSocket;import java.net.Socket;/** * 服务端 * @auth
2014-05-17 12:03:16 1316
原创 jFreeChart展示柱状图
import java.awt.Font;import java.io.IOException;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpS
2014-05-14 19:36:48 461
空空如也
关于udp DatagramSocket的传值问题
2016-04-28
TA创建的收藏夹 TA关注的收藏夹
TA关注的人