去除POM文件无用jar
This commit is contained in:
parent
979c630e8f
commit
f4288e97ea
4
pom.xml
4
pom.xml
|
@ -264,11 +264,11 @@
|
||||||
<version>2.5.2</version>
|
<version>2.5.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- hessian -->
|
<!-- hessian -->
|
||||||
<dependency>
|
<!-- <dependency>
|
||||||
<groupId>com.caucho</groupId>
|
<groupId>com.caucho</groupId>
|
||||||
<artifactId>hessian</artifactId>
|
<artifactId>hessian</artifactId>
|
||||||
<version>3.1.5</version>
|
<version>3.1.5</version>
|
||||||
</dependency>
|
</dependency> -->
|
||||||
<!--由于Oracle JDBC驱动包是需要Oracle官方授权才能被下载,如果原maven私库中无此包,请手动添加至私库再在maven中操作update
|
<!--由于Oracle JDBC驱动包是需要Oracle官方授权才能被下载,如果原maven私库中无此包,请手动添加至私库再在maven中操作update
|
||||||
project -->
|
project -->
|
||||||
<!--如果您不需要用到此包,可以注释掉 -->
|
<!--如果您不需要用到此包,可以注释掉 -->
|
||||||
|
|
|
@ -1,15 +1,7 @@
|
||||||
package luckyclient.publicclass.remoterinterface;
|
package luckyclient.publicclass.remoterinterface;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
|
||||||
import java.lang.reflect.InvocationTargetException;
|
|
||||||
import java.lang.reflect.Method;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.caucho.hessian.client.HessianProxyFactory;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,7 +38,7 @@ public class HessianTestUtil {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Map<String, Object> startInvoke(InterfaceObject object)
|
/* public static Map<String, Object> startInvoke(InterfaceObject object)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
// 获取带请求参数列表将(参数类型,参数值)数组转成InterfaceParamObject数组
|
// 获取带请求参数列表将(参数类型,参数值)数组转成InterfaceParamObject数组
|
||||||
InterfaceParamObject[] paramContent = MAPPER
|
InterfaceParamObject[] paramContent = MAPPER
|
||||||
|
@ -179,7 +171,7 @@ public class HessianTestUtil {
|
||||||
isBase = BASE_TYPE.get(objClassName) != null ? true : false;
|
isBase = BASE_TYPE.get(objClassName) != null ? true : false;
|
||||||
}
|
}
|
||||||
return isBase;
|
return isBase;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
|
@ -1,17 +1,11 @@
|
||||||
package luckyclient.publicclass.remoterinterface;
|
package luckyclient.publicclass.remoterinterface;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
|
||||||
import java.lang.reflect.Method;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import com.caucho.hessian.client.HessianProxyFactory;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
@ -44,7 +38,7 @@ public class InterfaceTestUtil {
|
||||||
BASE_TYPE.put("short", short.class);
|
BASE_TYPE.put("short", short.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Map<String, Object> doTest(InterfaceObject object)
|
/* public static Map<String, Object> doTest(InterfaceObject object)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
// 获取带请求参数列表将(参数类型,参数值)数组转成InterfaceParamObject数组
|
// 获取带请求参数列表将(参数类型,参数值)数组转成InterfaceParamObject数组
|
||||||
InterfaceParamObject[] paramContent = MAP.readValue(object.getParams(),
|
InterfaceParamObject[] paramContent = MAP.readValue(object.getParams(),
|
||||||
|
@ -204,14 +198,14 @@ public class InterfaceTestUtil {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
*//**
|
||||||
* 1、转换基本数据类型为包装类型<br>
|
* 1、转换基本数据类型为包装类型<br>
|
||||||
* 2、…<br>
|
* 2、…<br>
|
||||||
*
|
*
|
||||||
* @param className
|
* @param className
|
||||||
* @return
|
* @return
|
||||||
* @see
|
* @see
|
||||||
*/
|
*//*
|
||||||
private static Class<?> getBaseTypeClassByName(String className) {
|
private static Class<?> getBaseTypeClassByName(String className) {
|
||||||
return BASE_TYPE.get(className);
|
return BASE_TYPE.get(className);
|
||||||
}
|
}
|
||||||
|
@ -222,5 +216,5 @@ public class InterfaceTestUtil {
|
||||||
istrue = className.equals(key) ? true : false;
|
istrue = className.equals(key) ? true : false;
|
||||||
}
|
}
|
||||||
return istrue;
|
return istrue;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
Loading…
Reference in New Issue