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

  • 大小: 27.53MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-07-11
  • 語言: Java
  • 標(biāo)簽: JSP??J2EE??MySQL??

資源簡介

基于MySQL數(shù)據(jù)庫,SSM,結(jié)合easyui,JS、CSS的JAVAWeb進(jìn)存銷項目。

資源截圖

代碼片段和文件信息

package?com.chengxusheji.controller;

import?java.beans.PropertyEditorSupport;
import?java.io.File;
import?java.io.IOException;
import?java.io.PrintWriter;
import?java.text.SimpleDateFormat;
import?java.util.Date;
import?java.util.UUID;

import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
?
import?org.json.JSONException;
import?org.json.JSONobject;
import?org.springframework.beans.propertyeditors.CustomDateEditor;
import?org.springframework.web.bind.WebDataBinder;
import?org.springframework.web.bind.annotation.InitBinder;
import?org.springframework.web.multipart.MultipartFile;
import?org.springframework.web.multipart.MultipartHttpServletRequest;

import?com.chengxusheji.utils.UserException;

public?class?baseController?{



@InitBinder
//?必須有一個參數(shù)WebDataBinder
public?void?initBinder(WebDataBinder?binder)?{
//System.out.println(binder.getFieldDefaultPrefix());
binder.registerCustomEditor(Date.class?new?CustomDateEditor(
new?SimpleDateFormat(“yyyy-MM-dd“)?false));
?
binder.registerCustomEditor(Integer.class?new?PropertyEditorSupport()?{
@Override
public?String?getAsText()?{?
return?(getValue()?==?null)???““?:?getValue().toString();
}?
@Override
public?void?setAsText(String?text)?{
Integer?value?=?null;
if?(null?!=?text?&&?!text.equals(““))?{??
try?{
value?=?Integer.valueOf(text);
}?catch(Exception?ex)??{?
throw?new?UserException(“數(shù)據(jù)格式輸入不正確!“);?
}??
}
setValue(value);
}?
});
??
//binder.registerCustomEditor(Integer.class?nullnew?CustomNumberEditor(Integer.class?null?true));

binder.registerCustomEditor(Float.class?new?PropertyEditorSupport()?{
@Override
public?String?getAsText()?{?
return?(getValue()?==?null)??““?:?getValue().toString();
}?
@Override
public?void?setAsText(String?text)??{
Float?value?=?null;
if?(null?!=?text?&&?!text.equals(““))?{
try?{
value?=?Float.valueOf(text);
}?catch?(Exception?e)?{?
throw?new?UserException(“數(shù)據(jù)格式輸入不正確!“);?
}
}
setValue(value);
}
});
}
?
/**?
?*?處理圖片文件上傳,返回保存的文件名路徑
?*?fileKeyName:?圖片上傳表單key
?*?@throws?IOException?
?*?@throws?IllegalStateException?
?*/?
public?String?handlePhotoUpload(HttpServletRequest?requestString?fileKeyName)?throws?IllegalStateException?IOException?{
String?fileName?=?“upload/NoImage.jpg“;
MultipartHttpServletRequest?multipartRequest?=?(MultipartHttpServletRequest)?request;?
????????/**構(gòu)建圖片保存的目錄**/????
????????String?photoBookPathDir?=?“/upload“;?????
????????/**得到圖片保存目錄的真實路徑**/????
????????String?photoBookRealPathDir?=?request.getSession().getServletContext().getRealPath(photoBookPathDir);?????
????????/**根據(jù)真實路徑創(chuàng)建目錄**/????
????????File?photoBookSaveFile?=?new?File(photoBookRealPathDir);?????
????????if(!photoBookSaveFile.exists())?????
???????? photoBookSaveFile.mkdirs();?????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-11-09?17:59??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\
?????目錄???????????0??2018-11-09?15:32??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\mysql數(shù)據(jù)庫\
?????文件????????8110??2018-11-09?15:54??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\mysql數(shù)據(jù)庫\shop_product_db.sql
?????文件??????138024??2018-01-21?15:57??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\公司進(jìn)銷存E-R圖.png
?????目錄???????????0??2018-11-09?15:32??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\
?????文件????????3852??2017-12-18?03:03??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.classpath
?????文件?????????315??2018-07-30?21:52??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.mymetadata
?????文件????????1420??2014-09-24?19:13??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.project
?????目錄???????????0??2018-11-09?15:32??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.settings\
?????文件?????????500??2013-01-20?22:05??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.settings\.jsdtscope
?????文件?????????105??2018-01-20?15:51??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.settings\com.genuitec.eclipse.core.prefs
?????文件?????????169??2017-07-26?21:42??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.settings\org.eclipse.core.resources.prefs
?????文件?????????629??2017-07-26?21:45??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.settings\org.eclipse.jdt.core.prefs
?????文件??????????49??2013-01-20?22:05??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2013-01-20?22:05??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2018-11-09?15:32??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\
?????目錄???????????0??2018-11-09?15:32??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\
?????文件????????1774??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\customer_add.jsp
?????文件????????6950??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\customer_frontAdd.jsp
?????文件????????6527??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\customer_frontModify.jsp
?????文件???????13296??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\customer_frontquery_result.jsp
?????文件????????3117??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\customer_frontshow.jsp
?????文件????????1992??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\customer_modify.jsp
?????文件????????3502??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\customer_query_result.jsp
?????目錄???????????0??2018-11-09?15:32??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\js\
?????文件????????2341??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\js\customer_add.js
?????文件????????7072??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\js\customer_manage.js
?????文件????????3428??2018-01-19?23:04??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Customer\js\customer_modify.js
?????目錄???????????0??2018-01-19?23:05??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\meta-INF\
?????文件??????????36??2013-01-20?22:05??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\meta-INF\MANIFEST.MF
?????目錄???????????0??2018-11-09?15:32??JSP基于SSM公司商品進(jìn)銷存系統(tǒng)\源代碼\WebRoot\Product\
............此處省略1329個文件信息

評論

共有 條評論