目录结构:
搭建项目:
1.创建web项目
2.创建各种包.
com.atguigu.surveypark.dao.impl
com.atguigu.surveypark.model
com.atguigu.surveypark.service.impl
com.atguigu.surveypark.struts2.action
com.atguigu.surveypark...
分类:
其他好文 时间:
2014-06-26 14:01:33
阅读次数:
204
1.编写目的为了学习,为了更好的学习java.为了让想要学习这个整合的人少走弯路! ! !2.实验环境l MyEclipse6.5l JBoss4.2.1l SQL2005l 数据库脚本程序CREATE TABLE student (id int(11) NOT NULL auto_incremen...
分类:
系统相关 时间:
2014-06-25 00:42:58
阅读次数:
433
工程目录:/SSH1/src/cn/itcast/domain/Book.javapackage cn.itcast.domain;/** * 图书
*/public class Book { private Integer id; // 图书编号 private String name...
分类:
其他好文 时间:
2014-05-27 00:33:58
阅读次数:
310
Interceptor的设计思想,其实是Spring里面的AOP思想,尽管Struts2又有自己的Interceptor但是,在实际开发中,用的较少,SSH整合之后你可以采用AOP事务处理进行拦截,更方便---------------------------------华丽的分割线---------...
分类:
其他好文 时间:
2014-05-26 03:09:30
阅读次数:
196
1,设计实体/表
设计实体 --> JavaBean --> hbm.xml -->(在创建sessionFactory时自动建表) 建表
2,分析有几个功能,对应几个请求。
3,实现功能:
1,写Action类,写Action中的方法,确定Service中的方法。
2,写Service方法,确定Dao中的方法。
3,写Dao方法。
4,写JSP
=======...
分类:
其他好文 时间:
2014-04-29 13:35:20
阅读次数:
314