摘要: 1、封装,提供公共接口; 2、降低耦合 3、单元测试更加方便; 4、提高代码的可重用性; 5、提高可扩展性 阅读全文
posted @ 2017-07-11 10:29 XuGuobao 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 一、VO类 二、数据库连接类 三、DAO操作接口(标准) 四、DAO接口的真实主题实现类 五、代理实现类 六、DAO工厂类 七、简单测试 (1) (2) 阅读全文
posted @ 2017-07-11 08:58 XuGuobao 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 My JSP 'login.jsp' starting page 5 27 28 29 30 31 33 34 用户登录 35 36 37 身份... 阅读全文
posted @ 2017-07-11 08:43 XuGuobao 阅读(764) 评论(0) 推荐(0) 编辑
摘要: 1 import org.lxh.mvcdemo.factory.DAOFactory; 2 import org.lxh.mvcdemo.vo.User; 3 4 import com.opensymphony.xwork2.ActionContext; 5 import com.opensymphony.xwork2.ActionSupport; 6 7 public cl... 阅读全文
posted @ 2017-07-11 08:39 XuGuobao 阅读(340) 评论(0) 推荐(0) 编辑