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

  • 大小: 14.88MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-09
  • 語言: 數據庫
  • 標簽: java??

資源簡介

此資源是基于SSM(Spring+SpringMVC+MyBatis)的高級整合,項目中利用前端框架bootstrap快速搭建簡潔優美的界面,進行對mysql的增,刪,改,查的基礎操作。是一個非常適合新手學習的例子!!前臺使用的是easyui

資源截圖

代碼片段和文件信息

package?com.jk.controller;

import?java.io.File;
import?java.io.FileOutputStream;
import?java.text.SimpleDateFormat;
import?java.util.Date;
import?java.util.List;
import?java.util.Map;

import?javax.servlet.http.HttpServletRequest;

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

import?com.alibaba.fastjson.JSON;
import?com.alibaba.fastjson.serializer.ValueFilter;
import?com.jk.pojo.Shoe;
import?com.jk.service.ShoeService;

@Controller
@RequestMapping(“shoe“)
public?class?ShoeController?{
@Autowired
private?ShoeService?shoeService;

private?ValueFilter?filter?=?new?ValueFilter()?{
@Override
public?object?process(object?obj?String?s?object?v)?{
if?(v?==?null)
return?““;
return?v;
}
};
@RequestMapping(“queryShoe“)
@ResponseBody
public?String?queryShoe(Integer?pageInteger?rows){
Map?map?=?shoeService.queryShoe(pagerows);
return?JSON.toJSONStringWithDateFormat(map“yyyy-MM-dd“);
?}
//查詢從表
@RequestMapping(“queryType“)
@ResponseBody
public?String?queryType(){
List?list?=?shoeService.queryType();
return?JSON.toJSONString(list);
}
//上傳圖片
@RequestMapping(“uploadPhotoFile“)
@ResponseBody
????public?String?uploadPhotoFile(MultipartFile?uploadFileHttpServletRequest?req)?throws?Exception{
????????//獲取原文件名稱
????????String?fileName?=?uploadFile.getOriginalFilename();
????????SimpleDateFormat?sdf?=?new?SimpleDateFormat(“yyyyMMddHHmmss“);
????????String?folderPath?=?“C:/apache-tomcat-7.0.57-windows-x64/apache-tomcat-7.0.57/webapps/images/“;
????????File?file?=?new?File(folderPath);
//????????該目錄是否已經存在
????????if(!file.exists()){
?????????//???創建文件夾
????????????file.mkdir();
????????}
????????String?onlyFileName?=?sdf.format(new?Date())+fileName.substring(fileName.lastIndexOf(‘.‘));
????????FileOutputStream?fos?=?new?FileOutputStream(folderPath+onlyFileName);
????????fos.write(uploadFile.getBytes());
????????fos.flush();
????????fos.close();
????????return??“http://localhost:9999/apache-tomcat-7.0.57-windows-x64/apache-tomcat-7.0.57/webapps/images/“+onlyFileName;
????}

//新增
@RequestMapping(“addShoe“)
@ResponseBody
public?String?addShoe(Shoe?shoe){
shoeService.addShoe(shoe);
return?“addSuccess“;
}
//批量刪除
@RequestMapping(“delShoes“)
@ResponseBody
public?String?delShoes(String??ids){
Integer?delcount=shoeService.delShoes(ids);
if(delcount>0){
return?“success“;
}
return?“fail“;
}
//單個刪除
@RequestMapping(“delShoe“)
@ResponseBody
public?String?delShoe(Integer?shoeid){
Integer?delcount=shoeService.delShoe(shoeid);
if(delcount>0){
return?“success“;
}
return?“fail“;
}
//回顯
@RequestM

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????845??2018-03-28?20:20??elianbiao\.classpath

?????文件???????1042??2018-03-28?20:20??elianbiao\.project

?????文件????????503??2018-03-28?20:20??elianbiao\.settings\.jsdtscope

?????文件????????364??2018-03-28?20:20??elianbiao\.settings\org.eclipse.jdt.core.prefs

?????文件????????479??2018-03-28?20:20??elianbiao\.settings\org.eclipse.wst.common.component

?????文件????????349??2018-03-28?20:20??elianbiao\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2018-03-28?20:20??elianbiao\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2018-03-28?20:20??elianbiao\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件????????845??2018-03-29?09:45??elianbiao\build\classes\com\jk\controller\ShoeController$1.class

?????文件???????4972??2018-03-29?09:45??elianbiao\build\classes\com\jk\controller\ShoeController.class

?????文件???????1154??2018-03-28?20:22??elianbiao\build\classes\com\jk\controller\TreeController.class

?????文件???????1061??2018-03-28?20:22??elianbiao\build\classes\com\jk\controller\UserController.class

?????文件????????645??2018-03-28?20:22??elianbiao\build\classes\com\jk\dao\ShoeDao.class

?????文件????????319??2018-03-28?20:22??elianbiao\build\classes\com\jk\dao\TreeDao.class

?????文件????????163??2018-03-28?20:22??elianbiao\build\classes\com\jk\dao\UserDao.class

?????文件???????1896??2018-03-28?20:22??elianbiao\build\classes\com\jk\mapper\ShoeMapper.xml

?????文件????????345??2018-03-28?20:22??elianbiao\build\classes\com\jk\mapper\TreeMapper.xml

?????文件????????391??2018-03-28?20:22??elianbiao\build\classes\com\jk\mapper\UserMapper.xml

?????文件???????2555??2018-03-28?20:22??elianbiao\build\classes\com\jk\pojo\Shoe.class

?????文件???????1135??2018-03-28?20:22??elianbiao\build\classes\com\jk\pojo\ShoeType.class

?????文件???????2274??2018-03-28?20:22??elianbiao\build\classes\com\jk\pojo\Tree.class

?????文件???????1326??2018-03-28?20:22??elianbiao\build\classes\com\jk\pojo\User.class

?????文件???????2400??2018-03-28?20:22??elianbiao\build\classes\com\jk\service\impl\ShoeServiceImpl.class

?????文件???????1699??2018-03-28?20:22??elianbiao\build\classes\com\jk\service\impl\TreeServiceImpl.class

?????文件???????1227??2018-03-28?20:22??elianbiao\build\classes\com\jk\service\impl\UserServiceImpl.class

?????文件????????487??2018-03-28?20:22??elianbiao\build\classes\com\jk\service\ShoeService.class

?????文件????????258??2018-03-28?20:22??elianbiao\build\classes\com\jk\service\TreeService.class

?????文件????????214??2018-03-28?20:22??elianbiao\build\classes\com\jk\service\UserService.class

?????文件???????1781??2018-03-28?20:22??elianbiao\build\classes\com\jk\util\AuthImage.class

?????文件???????1247??2018-03-28?20:22??elianbiao\build\classes\com\jk\util\LoginIntercept.class

............此處省略1685個文件信息

評論

共有 條評論