上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 40 下一页
  2014年5月27日
摘要: 过滤器高级拦截1 2 3 FilterDemo34 /*5 REQUEST 默认情况。如果写了另外一种情况,默认的就没有了6 FORWARD7 INCLUDE8 ERROR9 阅读全文
posted @ 2014-05-27 21:06 wf110 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1 BASE64Encoder base64=new BASE64Encoder();2 String encoderStr=base64.encode(string.getBytes("utf-8"));3 System.out.println(en... 阅读全文
posted @ 2014-05-27 20:44 wf110 阅读(244) 评论(0) 推荐(0) 编辑
  2014年5月26日
摘要: http://blog.csdn.net/jkhere/article/details/27113139 1 ***一、表的复杂查询 2 1、连接查询 3 1.0连接的基本语法格式: 4 from TABLE1 join_type TABLE2 [on... 阅读全文
posted @ 2014-05-26 21:57 wf110 阅读(812) 评论(0) 推荐(0) 编辑
摘要: filter类里写代码包装类思想 1 package cn.itcast.filter; 2 3 import java.io.IOException; 4 import java.io.UnsupportedEncodingException; 5 6 import javax.servlet... 阅读全文
posted @ 2014-05-26 20:33 wf110 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) throws Exception { 2 ByteArrayOutputStream bos = new ByteArrayOutputStream(); //字符流 3 ... 阅读全文
posted @ 2014-05-26 18:38 wf110 阅读(1654) 评论(0) 推荐(0) 编辑
摘要: (1)DAO泛型设计:当二哥或多个类中有类似的方法时,可以将这些累死的方法提出到类中,形式一个泛型父类(2)反射反型:在泛型父类中获取子类的具体类型的过程,叫反射反型 1 package cn.itcast.web.generic; 2 3 import java.lang.reflect.Par... 阅读全文
posted @ 2014-05-26 12:46 wf110 阅读(1536) 评论(0) 推荐(0) 编辑
  2014年5月25日
摘要: http://blog.csdn.net/kerrywang/article/details/4454895pageEncoding 在JSP标准的语法中,如果 pageEncoding属性存在,那么JSP页面的字符编码方式就由pageEncoding决定,否则就由contentType属性中的 c... 阅读全文
posted @ 2014-05-25 10:40 wf110 阅读(407) 评论(0) 推荐(0) 编辑
  2014年5月24日
摘要: 一对一关系中 从表的主键是 主表的外键sql语句1 create table person(2 id int primary key,3 name varchar(100)4 );5 create table idcard(6 id int primary key,7 ... 阅读全文
posted @ 2014-05-24 14:22 wf110 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: 多对多关系 需要建立一张新表存放它们的对应数据sql语句 1 create table teacher( 2 id int primary key, 3 name varchar(100), 4 money float(8,2) 5 ); 6 create table stu... 阅读全文
posted @ 2014-05-24 14:18 wf110 阅读(2872) 评论(1) 推荐(0) 编辑
摘要: 少的一方把它查询出来,多的一方看需求把它查出来涉及java对象涉及到多个对象相互引用,要尽量避免使用一对多,或多对多关系,而应使用多对一描述对象之间的关系(或使用延迟加载的方式)。下个例子employee是多,而department是一 的关系sql语句 1 create table departm... 阅读全文
posted @ 2014-05-24 14:12 wf110 阅读(1903) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 40 下一页