摘要: 为了简化代码的重复性,使用HibernateUtil工具类对Hibernate有关的代码进行整合 主要实现有,getSessionFactory(),getSession(),closeSession() 阅读全文
posted @ 2017-08-02 11:18 Goxcheer 阅读(1979) 评论(0) 推荐(0) 编辑
摘要: 一.Junit4是JAVA语言的单元测试框架,用于编写和运行可重复的测试,可以大大提高效率 1.使用Junit4必须在项目中导入Junit4.har文件 2.新建Junit Test case 勾选setUp(),tearDown(),setUpBeforeClass(),tearDownAfter 阅读全文
posted @ 2017-08-02 10:37 Goxcheer 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 一.在java开发中,jsp提供了9个内置的对象,这些内置对象将由容器为用户进行实例化,用户直接使用。 这9个内置对象分别为:pageContext,request,response,session, application,config,out,page,exception。 常用的为前面5个 1 阅读全文
posted @ 2017-08-02 09:52 Goxcheer 阅读(156) 评论(0) 推荐(0) 编辑