This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cn.foamvalue.demo; | |
import ... | |
public class BaseAction extends ActionSupport { | |
public static final int BUFFER_SIZE = 2 * 1024; | |
public BaseAction() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn install:install-file -Dfile=D:\customerJAR\sae-local-1.1.0.jar -DgroupId=cn.com.sina.sae -DartifactId=sae-local -Dversion=1.1.0 -Dpackaging=jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package javaHttpURLConnection; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.net.URLEncoder; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @Title: MyWebServiceClient.java | |
* @Package cn.live.ws.service | |
* @Description: TODO | |
* @author FOAMVALUE FOAMVALUE@LIVE.CN | |
* @date 2014年4月16日 下午10:39:59 | |
* @version V1.0 | |
*/ | |
package cn.live.ws.service; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>MyWebServiceClient</groupId> | |
<artifactId>MyWebServiceClient</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>com.sun.xml.ws</groupId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @Title: Publisher.java | |
* @Package cn.live.ws.service | |
* @Description: TODO | |
* @author FOAMVALUE FOAMVALUE@LIVE.CN | |
* @date 2014年4月16日 下午4:21:59 | |
* @version V1.0 | |
*/ | |
package cn.live.ws.service; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @Title: MyServiceImpl.java | |
* @Package cn.live.ws.service.Impl | |
* @Description: TODO service 实现包 | |
* @author FOAMVALUE FOAMVALUE@LIVE.CN | |
* @date 2014年4月16日 下午3:59:03 | |
* @version V1.0 | |
*/ | |
package cn.live.ws.service.Impl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @Title: MyService.java | |
* @Package cn.live.ws.service | |
* @Description: TODO service 包 | |
* @author FOAMVALUE FOAMVALUE@LIVE.CN | |
* @date 2014年4月16日 下午2:34:39 | |
* @version V1.0 | |
*/ | |
package cn.live.ws.service; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>MyWebService</groupId> | |
<artifactId>MyWebService</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>MyWebService</name> | |
<dependencies> | |
<dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lruCache; | |
import java.util.LinkedHashMap; | |
import java.util.Collection; | |
import java.util.Map; | |
import java.util.ArrayList; | |
/** | |
* An LRU cache, based on <code>LinkedHashMap</code>. | |
* |