• 大小: 17.83MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-13
  • 语言: 其他
  • 标签: 宝马  ssh  

资源简介

宝马在线销售系统,不可多得的SSH项目,对于初学者有很大帮助

资源截图

代码片段和文件信息

package com.cslg.bmw.base;

import java.lang.reflect.ParameterizedType;

import javax.annotation.Resource;

import com.cslg.bmw.service.AdminService;
import com.cslg.bmw.service.AreaService;
import com.cslg.bmw.service.CarService;
import com.cslg.bmw.service.CommentService;
import com.cslg.bmw.service.DealService;
import com.cslg.bmw.service.DriveService;
import com.cslg.bmw.service.NewsService;
import com.cslg.bmw.service.PromotionService;
import com.cslg.bmw.service.SeriesService;
import com.cslg.bmw.service.UserService;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;


public class baseAction extends ActionSupport implements ModelDriven {
// =============== ModelDriven的支持 ==================
protected T model;

@Override
public T getModel() {
return model;
}

// ================初始化,用于获得T的真实类型===============
public baseAction() {
try {
ParameterizedType pt = (ParameterizedType) this.getClass()
.getGenericSuperclass();
Class clazz = (Class) pt.getActualTypeArguments()[0];
model = clazz.newInstance();// 反射 类的实例化 弱类型 只能调用无参构造
} catch (Exception e) {
throw new RuntimeException(e);
}
}

// =============== Service实例的声明 ==================
protected AreaService areaService; 
protected CarService carService;
protected CommentService commentService;
protected DealService dealService;
protected DriveService driveService;
protected NewsService newsService;
protected PromotionService promotionService;
protected SeriesService seriesService; 
protected UserService userService;
protected AdminService adminService;


public UserService getUserService() {
return userService;
}
    @Resource
public void setUserService(UserService userService) {
this.userService = userService;
}

public AreaService getAreaService() {
return areaService;
}
    @Resource
public void setAreaService(AreaService areaService) {
this.areaService = areaService;
}

public SeriesService getSeriesService() {
return seriesService;
}
    @Resource
public void setSeriesService(SeriesService seriesService) {
this.seriesService = seriesService;
}

public NewsService getNewsService() {
return newsService;
}
    @Resource
public void setNewsService(NewsService newsService) {
this.newsService = newsService;
}

public CarService getCarService() {
return carService;
}
    @Resource
public void setCarService(CarService carService) {
this.carService = carService;
}

public CommentService getCommentService() {
return commentService;
}
    @Resource
public void setCommentService(CommentService commentService) {
this.commentService = commentService;
}

public DealService getDealService() {
return dealService;
}
    @Resource
public void setDealService(DealService dealService) {
this.dealService = dealService;
}

public DriveService getDriveServic

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1007  2014-04-01 00:28  BMW\.classpath

     文件       1036  2014-03-31 15:50  BMW\.project

     文件        503  2014-03-29 23:29  BMW\.settings\.jsdtscope

     文件         81  2014-06-03 16:13  BMW\.settings\org.eclipse.core.resources.prefs

     文件        364  2014-03-29 23:29  BMW\.settings\org.eclipse.jdt.core.prefs

     文件        613  2014-04-01 00:28  BMW\.settings\org.eclipse.wst.common.component

     文件        345  2014-03-29 23:29  BMW\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2014-03-29 23:29  BMW\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2014-03-29 23:29  BMW\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       3939  2014-05-08 10:09  BMW\build\classes\beans.xml

     文件       5206  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\base\baseAction.class

     文件        600  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\base\DaoSupport.class

     文件       3718  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\base\DaoSupportImpl.class

     文件       1755  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\interceptor\CheckAdminInterceptor.class

     文件       1587  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\Admin.class

     文件       1333  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\Area.class

     文件       5633  2014-06-06 00:48  BMW\build\classes\com\cslg\bmw\model\Car.class

     文件       1361  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\City.class

     文件       2293  2014-06-07 10:02  BMW\build\classes\com\cslg\bmw\model\Comment.class

     文件       2390  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\Deal.class

     文件       2406  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\Drive.class

     文件       1804  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\News.class

     文件       2208  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\PageBean.class

     文件       2546  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\Privilege.class

     文件       2127  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\Promotion.class

     文件        983  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\Province.class

     文件       2356  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\Role.class

     文件       3496  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\model\Series.class

     文件       4795  2014-06-05 21:00  BMW\build\classes\com\cslg\bmw\model\User.class

     文件        365  2014-06-01 13:09  BMW\build\classes\com\cslg\bmw\service\AdminService.class

............此处省略896个文件信息

评论

共有 条评论