资源简介
使用SSH框架的编写的易买网项目
代码片段和文件信息
package com.caisin.easybuy.base;
import java.lang.reflect.ParameterizedType;
import com.caisin.easybuy.comment.service.EasybuyCommentService;
import com.caisin.easybuy.news.service.EasybuyNewsService;
import com.caisin.easybuy.order.detail.service.EasybuyOrderDetailService;
import com.caisin.easybuy.order.service.EasybuyOrderService;
import com.caisin.easybuy.product.category.child.service.EasybuyProductCategoryChildService;
import com.caisin.easybuy.product.category.service.EasybuyProductCategoryService;
import com.caisin.easybuy.product.service.EasybuyProductService;
import com.caisin.easybuy.user.service.EasybuyUserService;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
public class baseAction extends ActionSupport implements ModelDriven {
/**
*
*/
private static final long serialVersionUID = 1L;
// 1 封装数据
private T t;
@Override
public T getModel() {
return t;
}
// 1.1 实例化t
public baseAction() {
try {
// 1 获得T运行时Class
ParameterizedType paramType = (ParameterizedType) this.getClass().getGenericSuperclass();
@SuppressWarnings(“unchecked“)
Class clazz = (Class) paramType.getActualTypeArguments()[0];
// 2 反射创建实例
t = clazz.newInstance();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
// 2 spring注入service,多个
// * 提供setter方法,让spring进行注入的
// * 提供getter方法,让子类可以获得spring注入的对象的。
// 留言Service
private EasybuyCommentService easybuyCommentService;
public void setEasybuyCommentService(EasybuyCommentService easybuyCommentService) {
this.easybuyCommentService = easybuyCommentService;
}
// 新闻Service
private EasybuyNewsService easybuyNewsService;
public void setEasybuyNewsService(EasybuyNewsService easybuyNewsService) {
this.easybuyNewsService = easybuyNewsService;
}
// 订单Service
private EasybuyOrderService easybuyOrderService;
public void setEasybuyOrderService(EasybuyOrderService easybuyOrderService) {
this.easybuyOrderService = easybuyOrderService;
}
// 订单详情Service
private EasybuyOrderDetailService easybuyOrderDetailService;
public void setEasybuyOrderDetailService(EasybuyOrderDetailService easybuyOrderDetailService) {
this.easybuyOrderDetailService = easybuyOrderDetailService;
}
//商品Service
private EasybuyProductService easybuyProductService;
public void setEasybuyProductService(EasybuyProductService easybuyProductService) {
this.easybuyProductService = easybuyProductService;
}
//商品一级分类Service
private EasybuyProductCategoryService easybuyProductCategoryService;
public EasybuyProductCategoryService getEasybuyProductCategoryService() {
return easybuyProductCategoryService;
}
public void setEasybuyProductCategoryService(EasybuyProductCategoryService easybuyProductCategoryService) {
this.easybuyProductCategoryService = easybuyProductCategoryService;
}
//商品二级分类Serv
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1138 2017-01-19 13:49 .classpath
文件 1273 2017-02-09 21:26 .project
目录 0 2017-02-09 21:26 .settings\
文件 564 2017-01-17 10:11 .settings\.jsdtscope
文件 79 2017-01-19 13:49 .settings\com.genuitec.eclipse.migration.prefs
文件 86 2017-01-30 11:51 .settings\org.eclipse.core.resources.prefs
文件 364 2017-01-17 10:11 .settings\org.eclipse.jdt.core.prefs
文件 557 2017-01-21 00:40 .settings\org.eclipse.wst.common.component
文件 172 2017-01-19 13:49 .settings\org.eclipse.wst.common.project.facet.core.prefs.xm
文件 462 2017-01-19 13:49 .settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2017-01-17 10:11 .settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2017-01-17 10:11 .settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2017-02-10 19:54 WebRoot\
目录 0 2017-02-09 21:26 WebRoot\me
文件 39 2017-01-17 10:11 WebRoot\me
文件 10745 2017-01-10 10:37 WebRoot\me
文件 2934 2017-01-10 10:38 WebRoot\me
目录 0 2017-02-09 21:26 WebRoot\WEB-INF\
目录 0 2017-02-19 22:44 WebRoot\WEB-INF\classes\
目录 0 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\
目录 0 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\
目录 0 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\
目录 0 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\ba
文件 6917 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\ba
文件 1138 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\ba
目录 0 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\ba
文件 4820 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\ba
目录 0 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\comment\
目录 0 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\comment\action\
文件 3283 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\comment\action\EasybuyCommentAction.class
目录 0 2017-02-19 22:44 WebRoot\WEB-INF\classes\com\caisin\easybuy\comment\dao\
............此处省略402个文件信息
相关资源
- SSH学生考勤系统
- ssh登录工具 putty 和 生成.ppk文件的p
- xshell6 个人版解除窗口限制
- Windows平台下中文版SSH连接工具
- ssh框架的网上书店
- 常用字典ssh爆破字典常用用户名密码
- Struts2与Ueditor整合SSH+Ueditor
- SecureCRT 8.5.3 Build 1867(X64)原版 + ZW
- Bitvise SSH Client 8.23
- ssh项目的阳光酒店管理系统
- 兼职网站项目SSH
- ssh整合的小型超市系统
- openssh 7.9p1 rpm包
- IPOP华为网络自动化测试神器
- openssh-7.7p1.tar.gz
- 旅游订单系统
- ssh三大框架测试项目
- openssh8.1p1离线编译升级包
- SSH实现网上超市系统
- 基于ssh的在线网络商城 大学毕业设计
- 北大青鸟 易买网 源码
- SSH实现页面的登录和注册功能
- SSH简单增删改查
- centos 7 openssh7.9p 201810月最新版,基于
- VirusShare_00177.zip
- SSH Secure远程链接工具
- SSHSecureShellClient-3.2.9
- SSH框架员工信息管理系统
- S2结业项目易买网,希望对你有用
- OpenSSH升级包、依赖包
评论
共有 条评论