摘要: 在MVC之Servlet控制器(一)中,我们将业务逻辑的代码都写在了Servlet中,让Servlet显得非常的复杂,为了避免这个问题,我们将业务逻辑代码提取到独立的controller类中。两个controller类都实现了Controller接口,Controller接口只有handleRequ... 阅读全文
posted @ 2015-06-30 23:51 chuiyuan 阅读(776) 评论(0) 推荐(0) 编辑
摘要: 学习目的是为了知道如何用Servlet实现 MVC,也是从原理上弄清楚SpringMVC。一、工程目录功能为用户输入 一个商品的信息,并提交,程序保存商品并展示已经保存的商品的信息。所有的jsp文件都在WEB-INFO下,因此不能直接访问。二、程序代码product封闭了一个商品信息的javaBea... 阅读全文
posted @ 2015-06-30 21:13 chuiyuan 阅读(694) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/lichenwei/p/4610298.html 阅读全文
posted @ 2015-06-30 17:12 chuiyuan 阅读(446) 评论(0) 推荐(0) 编辑
摘要: http://www.bubuko.com/infodetail-649956.html 阅读全文
posted @ 2015-06-30 17:08 chuiyuan 阅读(149) 评论(0) 推荐(0) 编辑
摘要: http://mybatis.github.io/mybatis-3/zh/configuration.html#objectFactoryhttp://www.cnblogs.com/liuguanghuiyes/archive/2011/10/20/2219673.html 阅读全文
posted @ 2015-06-30 10:47 chuiyuan 阅读(103) 评论(0) 推荐(0) 编辑