上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: public class Test01 { private ServiceRegistry sr =null; private Session se =null; private Transaction ts = null; private SessionFactory sf = null; //在测试用例方法被执行之前自动执行的方法 //一般用来初始化公用的对象 //前置方法 ... 阅读全文
posted @ 2016-11-08 19:45 琢磨先生 阅读(228) 评论(0) 推荐(0) 编辑
摘要: package com.hanqi.test; import static org.junit.Assert.*; import java.util.Date; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hib... 阅读全文
posted @ 2016-11-08 19:43 琢磨先生 阅读(205) 评论(0) 推荐(0) 编辑
摘要: API 配置文件 ORM 阅读全文
posted @ 2016-11-07 21:37 琢磨先生 阅读(128) 评论(0) 推荐(0) 编辑
摘要: package com.hanqi.dao; import java.sql.Connection; import java.sql.SQLException; //单利模式的数据库工具类 //返回数据连接 import com.mchange.v2.c3p0.ComboPooledDataSource; public class DBHelper { //1.隐藏默认的构造方法 p... 阅读全文
posted @ 2016-11-07 08:52 琢磨先生 阅读(227) 评论(0) 推荐(0) 编辑
摘要: empty 判断变量或对象是否为空,若为空返回true,不为空返回false, 阅读全文
posted @ 2016-10-31 18:30 琢磨先生 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Insert title here Insert title here 系统主页面 cookie列表 "); } %> 测试是否已登录的页面 Insert title here 阅读全文
posted @ 2016-10-30 14:26 琢磨先生 阅读(385) 评论(0) 推荐(0) 编辑
摘要: // 如果已经设置了cookie , 则得到它的值,将该值放在登入名文本框的value中 //遍历 for(Cookie c:cks) { if(c.getName().equals("name")) name = c.getValue(); } Object yonghuming = sessio 阅读全文
posted @ 2016-10-30 14:12 琢磨先生 阅读(2569) 评论(0) 推荐(0) 编辑
摘要: 在web中连接数据库,odjbc6.jar的包要放在WEB-INF目录下的lib文件夹下面 阅读全文
posted @ 2016-10-28 21:01 琢磨先生 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Insert title here "; //换行 } %> "; //换行 } %> "; } %> "; } %> 阅读全文
posted @ 2016-10-26 19:18 琢磨先生 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 1 项目描述 该项目是用于日常生活中记录联系人信息的一款小工具。 实现了对联系人的姓名、年龄、性别、电话号码、住址的添加及修改、查找、删除、排序等功能。该项目是以windows控制台为运行平台,所有的操作都应在控制台上进行。 1.1 编写目的 1.2 实训范围 Java基础部分 2项目流程图 2.1 阅读全文
posted @ 2016-10-24 21:12 琢磨先生 阅读(662) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
AmazingCounters.com