原创 HttpServletWrapper 和 HttpServletResponseWrapper

1 Servlet API 中提供了一個 HttpServletRequestWrapper 類來包裝原始的 request 對象, HttpServletRequestWrapper 類實現了 HttpServletRequest 接口

原创 jsp + servlet 文件上傳

1. 進行文件上傳時, 表單需要做的準備: 1). 請求方式爲 POST: <form action="uploadServlet" method="post" ... > 2). 使用 file 的表單域: <input type="f

原创 網頁掃描登陸

https://open.weixin.qq.com/cgi-bin/frame?t=home/web_tmpl&lang=zh_CN 申請在微信開放平臺 https://open.weixin.qq.com/cgi-bin/showdo

原创 Struts 2三種方式實現Ajax

轉:http://blog.csdn.net/xiao__gui/article/details/21933349 Ajax本質上和普通的HTTP請求是一樣的,只不過普通的HTTP請求是給人看的,而Ajax請求是給JS代碼去用的。

原创 JSONP 的工作原理

轉:http://www.cnblogs.com/dowinning/archive/2012/04/19/json-jsonp-jquery.html  前言:   說到AJAX就會不可避免的面臨兩個問題,第一個是AJAX以何

原创 CentOS7利用systemctl添加自定義系統服務

轉:http://blog.csdn.net/gbenson/article/details/51083817 CentOS 7的服務systemctl腳本存放在:/usr/lib/systemd/,有系統(system)和用戶(us

原创 java 根據當前日期獲取本週或上週或下週日期區間

轉:http://blog.csdn.net/g_blue_wind/article/details/52413749 import java.text.SimpleDateFormat; import java.util.Calenda

原创 jquery.form.js ajax提交上傳文件

轉:https://www.cnblogs.com/DylanZ/p/6019611.html  項目中最近有用到表單提交,是帶有圖片上傳的表單錄入,需要ajax異步提交,網上找了好多例子都是隻能提交上傳字段一個信息的,這裏整理一下。

原创 ajax提交整個form表單

轉:http://blog.csdn.net/tolcf/article/details/41151195 在項目開發中,有時提交form表單時不能單單用action或者jquery的 表單提交方法有三種,主要說下第三種 第一種:用for

原创 msyql中子查詢IN,EXISTS,ANY,ALL,SOME,UNION介紹

轉:http://www.cnblogs.com/blueoverflow/archive/2015/08/08/4712320.htm 閱讀目錄(Content) 1.ANY關鍵字2.ALL關鍵字3.SOME關鍵字4.IN關鍵字5.

原创 s2s4h5整合

pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

原创 java web 文件下載

public class DownLoadServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletR

原创 Spring 測試配置

加入jar包 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>4.2

原创 Java 國際化

1. 什麼是國際化和本地化: I.   本地化:一個軟件在某個國家或地區使用時,採用該國家或地區的語言,數字,貨幣,日期等習慣。 II.  國際化:軟件開發時,讓它能支持多個國家和地區的本地化應用。使得應用軟件能夠適應多個地區的語言和文化

原创 linux 安裝git

轉:https://www.cnblogs.com/lijinhui/p/6901220.html 1.刪除已有的git yum remove git 2.安裝git依賴包 yum install curl-devel expat-de