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

  • 大小: 28.83MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-24
  • 語言: Java
  • 標簽: 源代碼??springmvc??mysql??

資源簡介

JSP房產中介系統,springmvc,mysql,有后臺分頁,富文本編輯器,附件上傳,文件上傳,時間選擇器等等的源代碼,保證可以運行,帶導入視頻

資源截圖

代碼片段和文件信息

package?com.sxl.controller;


import?java.nio.charset.Charset;
import?java.util.Locale;
import?java.util.ResourceBundle;

import?javax.servlet.http.HttpServletRequest;

import?org.apache.commons.lang.StringUtils;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.http.HttpHeaders;
import?org.springframework.http.HttpStatus;
import?org.springframework.http.MediaType;
import?org.springframework.http.ResponseEntity;

import?com.sxl.util.JacksonJsonUtil;
import?com.sxl.util.StringUtil;
import?com.sxl.util.SystemProperties;


public?class?baseController?{
public?static?final?Long?EXPIRES_IN?=?1000?*?3600?*?24?*?1L;//?1天



/**
?*?返回服務器地址?like?http://192.168.1.1:8441/UUBean/
?*/
public?String?getHostUrl(HttpServletRequest?request)?{
String?hostName?=?request.getServerName();
Integer?hostPort?=?request.getServerPort();
String?path?=?request.getContextPath();

if?(hostPort?==?80)?{
return?“http://“?+?hostName?+?path?+?“/“;
}?else?{
return?“http://“?+?hostName?+?“:“?+?hostPort?+?path?+?“/“;
}
}

/***
?*?獲取當前的website路徑?String
?*/
public?static?String?getWebSite(HttpServletRequest?request)?{
String?returnUrl?=?request.getScheme()?+?“://“
+?request.getServerName();

if?(request.getServerPort()?!=?80)?{
returnUrl?+=?“:“?+?request.getServerPort();
}

returnUrl?+=?request.getContextPath();

return?returnUrl;
}



/**
?*?初始化HTTP頭.
?*?
?*?@return?HttpHeaders
?*/
public?HttpHeaders?initHttpHeaders()?{
HttpHeaders?headers?=?new?HttpHeaders();
MediaType?mediaType?=?new?MediaType(“text“?“html“
Charset.forName(“utf-8“));
headers.setContentType(mediaType);
return?headers;
}

/**
?*?返回?信息數據
?*?
?*?@param?status
?*?@param?msg
?*?@return
?*/
public?ResponseEntity?renderMsg(Boolean?status?String?msg)?{
if?(StringUtils.isEmpty(msg))?{
msg?=?““;
}
String?str?=?“{\“status\“:\““?+?status?+?“\“\“msg\“:\““?+?msg?+?“\“}“;
ResponseEntity?responseEntity?=?new?ResponseEntity(str
initHttpHeaders()?HttpStatus.OK);
return?responseEntity;
}

/**
?*?返回obj數據
?*?
?*?@param?status
?*?@param?msg
?*?@param?obj
?*?@return
?*/
public?ResponseEntity?renderData(Boolean?status?String?msg
object?obj)?{
if?(StringUtils.isEmpty(msg))?{
msg?=?““;
}
StringBuffer?sb?=?new?StringBuffer();
sb.append(“{“);
sb.append(“\“status\“:\““?+?status?+?“\“\“msg\“:\““?+?msg?+?“\““);
sb.append(“\“data\“:“?+?JacksonJsonUtil.toJson(obj)?+?““);
sb.append(“}“);

ResponseEntity?responseEntity?=?new?ResponseEntity
sb.toString()?initHttpHeaders()?HttpStatus.OK);
return?responseEntity;
}


/***
?*?獲取IP(如果是多級代理,則得到的是一串IP值)
?*/
public?static?String?getIpAddr(HttpServletRequest?request)?{
String?ip?=?request.getHeader(“x-forwarded-for“);
if?(ip?==?null?||?ip.length()?==?0?||?“unk

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

?????文件????????572??2018-07-08?10:29??JSP房產中介系統\jspfczj\.classpath

?????文件????????296??2018-07-08?10:29??JSP房產中介系統\jspfczj\.mymetadata

?????文件???????1615??2018-07-08?10:29??JSP房產中介系統\jspfczj\.project

?????文件????????500??2018-07-08?10:29??JSP房產中介系統\jspfczj\.settings\.jsdtscope

?????文件????????364??2018-07-08?10:29??JSP房產中介系統\jspfczj\.settings\org.eclipse.jdt.core.prefs

?????文件????????532??2018-07-08?10:29??JSP房產中介系統\jspfczj\.settings\org.eclipse.wst.common.component

?????文件????????252??2018-07-08?10:29??JSP房產中介系統\jspfczj\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2018-07-08?10:29??JSP房產中介系統\jspfczj\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2018-07-08?10:29??JSP房產中介系統\jspfczj\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件???????3944??2018-07-08?10:29??JSP房產中介系統\jspfczj\conf\applicationContext.xml

?????文件???????1473??2018-07-08?10:29??JSP房產中介系統\jspfczj\conf\log4j.xml

?????文件???????2673??2018-07-08?10:29??JSP房產中介系統\jspfczj\conf\spring-mvc-protal.xml

?????文件???????1447??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\controller\admin\AdminController.java

?????文件???????1613??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\controller\admin\AdminLoginController.java

?????文件???????3004??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\controller\admin\TemplateController.java

?????文件???????4725??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\controller\baseController.java

?????文件????????472??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\controller\IndexController.java

?????文件???????3055??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\controller\MyController.java

?????文件???????1596??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\controller\PublicController.java

?????文件??????11235??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\controller\tool\FileController.java

?????文件???????3398??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\interceptor\ProtalSessionHandlerInterceptor.java

?????文件????????719??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\support\MessageSourceHelper.java

?????文件???????1618??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\support\UTF8StringHttpMessageConverter.java

?????文件???????2652??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\taglib\display\ELSetPropertyTag.java

?????文件???????1214??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\taglib\display\ExcelSelfUse.java

?????文件????????217??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\taglib\display\ExcelView.java

?????文件????????454??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\taglib\display\OverOutWrapper.java

?????文件????????835??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\util\BatchSql.java

?????文件??????22491??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\util\Client.java

?????文件????????919??2018-07-08?10:29??JSP房產中介系統\jspfczj\src\com\sxl\util\DateConverter.java

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

評論

共有 條評論