資源簡介
校友錄網站?;趈avaWeb,由Maven構建管理,采用Spring+SpringMVC+MyBatis框架,用EhCache做數據緩存。門戶網站采用BootStrap設計界面,后臺管理網站用AmazeUI設計界面。
代碼片段和文件信息
/**
?*?@title:?baseController.java?
?*?@Package?com.xzit.ar.common.base?
?*?@Description:?TODO?
?*?@author?Mr.Black?
?*?@date?2015年12月21日?上午11:08:45?
?*?@version?V1.0?
?*/
package?com.xzit.ar.common.base;
import?java.io.UnsupportedEncodingException;
import?java.util.Map;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpSession;
import?org.apache.commons.lang.StringUtils;
import?org.springframework.ui.Model;
import?org.springframework.ui.ModelMap;
import?org.springframework.web.context.request.RequestAttributes;
import?org.springframework.web.context.request.RequestContextHolder;
import?org.springframework.web.context.request.ServletRequestAttributes;
import?org.springframework.web.servlet.ModelAndView;
import?org.springframework.web.servlet.mvc.support.RedirectAttributes;
import?com.xzit.ar.common.constant.GlobalConstants;
import?com.xzit.ar.common.constant.WebConstant;
import?com.xzit.ar.common.exception.AssertException;
import?com.xzit.ar.common.util.Assert;
import?com.xzit.ar.common.util.CommonUtil;
/**
?*?@author?Mr.Black?
?*?@version?V1.0?
?*??????????
?*?@ClassName:?baseController?
?*?@Description:?TODO?
?*?@date?2015年12月21日?上午11:08:45?
?*/
public?abstract?class?baseController?{
????/**
?????*?分頁最大數
?????*/
????private?static?final?int?MAX_PAGE_SIZE?=?100;
????/**
?????*?分頁最小數
?????*/
????private?static?final?int?MIN_PAGE_SIZE?=?5;
????/**
?????*?默認頁大小
?????*/
????private?static?final?int?DEFAULT_PAGE_SIZE?=?10;
????/**
?????*?頁面操作備注
?????*/
????private?static?String?OPERATE_REMARKS?=?“operateRemarks“;
????/**
?????*?操作結果信息
?????*/
????private?static?String?OPERATE_REASULT_MESSAGE?=?“_message“;
????/**
?????*?成功跳轉頁面
?????*/
????private?static?String?successPage?=?“error/page500“;
????/**
?????*?失敗跳轉頁面
?????*/
????private?static?String?errorPage?=?“error/page500“;
????private?static?Logger?logger?=?new?Logger(baseController.class);
????/**
?????*?@param?@throws?AssertException?
?????*?@return?String?
?????*?@throws?
?????*?@title:?getParameter?
?????*?@Description:?TODO?獲取參數
?????*?@author?Mr.Black?
?????*?@date?2015年12月21日?下午1:28:56?
?????*/
????protected?String?getParameter(String?param?String?errMsg)?throws?AssertException?{
????????String?value?=?getRequest().getParameter(param);
????????if?(errMsg?!=?null)?{
????????????Assert.notEmpty(value?errMsg);
????????}
????????return?StringUtils.trim(value);
????}
????/**
?????*?@throws?
?????*?@title:?getParameter?
?????*?@Description:?TODO?獲取參數
?????*?@author?Mr.Black?
?????*?@date?2015年12月21日?下午1:11:27?
?????*/
????protected?String?getParameter(String?param)?{
????????String?value?=?getRequest().getParameter(param);
????????if?(CommonUtil.isNotEmpty(value))?{
????????????try?{
????????????????value?=?new?String(value.getBytes(“ISO-8859-1“)?GlobalConstants.DEFAULT_CHARSET);
????????????}?catch?(UnsupportedEncodingException?e)?{
????????????????logger.warn
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-07-29?08:22??ar-master\
?????文件?????????189??2017-07-29?08:22??ar-master\.gitignore
?????文件????????1451??2017-07-29?08:22??ar-master\README.md
?????目錄???????????0??2017-07-29?08:22??ar-master\ar-doc\
?????目錄???????????0??2017-07-29?08:22??ar-master\ar-doc\ER\
?????文件???????21227??2017-07-29?08:22??ar-master\ar-doc\ER\activity.eddx
?????文件???????13745??2017-07-29?08:22??ar-master\ar-doc\ER\address.eddx
?????文件???????14542??2017-07-29?08:22??ar-master\ar-doc\ER\album.eddx
?????文件???????14550??2017-07-29?08:22??ar-master\ar-doc\ER\attachment.eddx
?????文件???????11715??2017-07-29?08:22??ar-master\ar-doc\ER\collect.eddx
?????文件???????12835??2017-07-29?08:22??ar-master\ar-doc\ER\comment.eddx
?????文件???????11344??2017-07-29?08:22??ar-master\ar-doc\ER\dictionary.eddx
?????文件???????12776??2017-07-29?08:22??ar-master\ar-doc\ER\dictionary_data.eddx
?????文件???????11636??2017-07-29?08:22??ar-master\ar-doc\ER\grade.eddx
?????文件???????16079??2017-07-29?08:22??ar-master\ar-doc\ER\image.eddx
?????文件???????19359??2017-07-29?08:22??ar-master\ar-doc\ER\information.eddx
?????文件???????12096??2017-07-29?08:22??ar-master\ar-doc\ER\message.eddx
?????文件???????14218??2017-07-29?08:22??ar-master\ar-doc\ER\origin.eddx
?????文件???????21739??2017-07-29?08:22??ar-master\ar-doc\ER\recruit.eddx
?????文件???????12161??2017-07-29?08:22??ar-master\ar-doc\ER\reply.eddx
?????文件???????11687??2017-07-29?08:22??ar-master\ar-doc\ER\resume_post.eddx
?????文件???????13537??2017-07-29?08:22??ar-master\ar-doc\ER\right.eddx
?????文件???????12189??2017-07-29?08:22??ar-master\ar-doc\ER\role.eddx
?????文件???????11938??2017-07-29?08:22??ar-master\ar-doc\ER\share.eddx
?????文件???????12400??2017-07-29?08:22??ar-master\ar-doc\ER\subsc
?????文件???????15796??2017-07-29?08:22??ar-master\ar-doc\ER\unit.eddx
?????文件???????15613??2017-07-29?08:22??ar-master\ar-doc\ER\user.eddx
?????文件???????16298??2017-07-29?08:22??ar-master\ar-doc\ER\user_job.eddx
?????文件???????16666??2017-07-29?08:22??ar-master\ar-doc\ER\user_resume.eddx
?????文件?????2356653??2017-07-29?08:22??ar-master\ar-doc\ar.png
?????目錄???????????0??2017-07-29?08:22??ar-master\ar-doc\data\
............此處省略1938個文件信息
- 上一篇:Jsp實用教程第三版耿祥義
- 下一篇:J2EE畢業論文中英文資料外文翻譯文獻.pdf
評論
共有 條評論