91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

ecplise+mysql,SSM框架,有前端有后臺,非常適合畢設,自己練手用的,需要做項目的時候出現的問題(我都記錄下來了)的可以加我

資源截圖

代碼片段和文件信息

package?com.kw.controller;

import?java.io.File;
import?java.io.IOException;
import?java.io.UnsupportedEncodingException;
import?java.util.UUID;

import?javax.servlet.http.HttpServletRequest;

import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Controller;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.bind.annotation.RequestParam;
import?org.springframework.web.bind.annotation.ResponseBody;
import?org.springframework.web.multipart.MultipartFile;

import?com.kw.pojo.Cars;
import?com.kw.pojo.Pagination;
import?com.kw.service.CarService;

@Controller
public?class?CarController?{

@Autowired
private?CarService?carService;

//添加汽車信息
@RequestMapping(“/addCar“)
@ResponseBody
public?int?addCar(Cars?c@RequestParam(“photo“)MultipartFile?photoHttpServletRequest?req)?throws?IllegalStateException?IOException?{
//得到原始名字
String?oname?=?photo.getOriginalFilename();
File?path?=?new?File(req.getServletContext().getRealPath(“/upload“));
//?判斷路徑是否存在
if(!path.exists())?{
path.mkdirs();
}
//?獲取上傳文件的后綴
String?suffix?=?oname.substring(oname.lastIndexOf(“.“));
//?生成一個新的文件名
String?nname?=?UUID.randomUUID().toString()+suffix;
//?真實的上傳文件
File?file?=?new?File(pathnname);
//?上傳文件
photo.transferTo(file);
c.setCarimg(nname);
return?carService.addCar(c);
}

//查詢所有汽車
@RequestMapping(“/selAllCar“)
@ResponseBody
public?Pagination?selAllCar(Integer?seatString?pageString?rows){
return?carService.selAllCar(seat?page?rows);
}

//修改汽車信息
@RequestMapping(“/updCar“)
@ResponseBody
public?int?updCar(Cars?c)?{
return?carService.updCar(c);
}

//刪除汽車信息
@RequestMapping(“/delCar“)
@ResponseBody
public?int?delCar(String?carnumber)?throws?UnsupportedEncodingException?{
String?a?=?new?String(carnumber.getBytes(“iso-8859-1“)“utf-8“);
return?carService.delCar(a);
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-02-28?12:45??項目源碼+數據庫\
?????文件???????22656??2019-02-28?12:37??項目源碼+數據庫\bbb.sql
?????目錄???????????0??2019-02-28?12:38??項目源碼+數據庫\WanLiXingCar\
?????文件?????????759??2019-02-26?20:39??項目源碼+數據庫\WanLiXingCar\.classpath
?????文件?????????912??2018-11-26?18:45??項目源碼+數據庫\WanLiXingCar\.project
?????目錄???????????0??2019-02-28?12:38??項目源碼+數據庫\WanLiXingCar\.settings\
?????文件?????????567??2018-11-26?18:43??項目源碼+數據庫\WanLiXingCar\.settings\.jsdtscope
?????文件??????????93??2018-12-14?16:04??項目源碼+數據庫\WanLiXingCar\.settings\org.eclipse.core.resources.prefs
?????文件?????????364??2018-11-26?18:43??項目源碼+數據庫\WanLiXingCar\.settings\org.eclipse.jdt.core.prefs
?????文件?????????488??2018-11-26?18:45??項目源碼+數據庫\WanLiXingCar\.settings\org.eclipse.wst.common.component
?????文件?????????305??2019-02-25?10:08??項目源碼+數據庫\WanLiXingCar\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2018-11-26?18:43??項目源碼+數據庫\WanLiXingCar\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2018-11-26?18:43??項目源碼+數據庫\WanLiXingCar\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件??????????87??2018-11-26?18:45??項目源碼+數據庫\WanLiXingCar\.settings\org.eclipse.wst.ws.service.policy.prefs
?????目錄???????????0??2019-02-28?12:38??項目源碼+數據庫\WanLiXingCar\build\
?????目錄???????????0??2019-02-28?12:38??項目源碼+數據庫\WanLiXingCar\build\classes\
?????文件????????1046??2018-12-27?14:00??項目源碼+數據庫\WanLiXingCar\build\classes\applicationContext-mvc.xml
?????文件????????1456??2018-12-13?15:11??項目源碼+數據庫\WanLiXingCar\build\classes\applicationContext-mybatis.xml
?????文件????????1401??2018-12-13?13:29??項目源碼+數據庫\WanLiXingCar\build\classes\applicationContext-tx.xml
?????目錄???????????0??2019-02-28?12:38??項目源碼+數據庫\WanLiXingCar\build\classes\com\
?????目錄???????????0??2019-02-28?12:38??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\
?????目錄???????????0??2019-02-28?12:38??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\controller\
?????文件????????3412??2019-02-25?10:10??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\controller\CarController.class
?????文件????????1731??2019-02-25?10:10??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\controller\CustomerController.class
?????文件????????4801??2019-02-25?10:10??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\controller\RentController.class
?????文件????????2392??2019-02-25?10:10??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\controller\UserController.class
?????目錄???????????0??2019-02-28?12:38??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\mapper\
?????文件????????1213??2019-02-25?10:10??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\mapper\CarMapper.class
?????文件?????????477??2018-12-27?16:00??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\mapper\CarMapper.xml
?????文件????????1296??2019-02-25?10:10??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\mapper\CustomerMapper.class
?????文件?????????807??2018-12-27?15:18??項目源碼+數據庫\WanLiXingCar\build\classes\com\kw\mapper\CustomerMapper.xml
............此處省略557個文件信息

評論

共有 條評論