测试项目更新
parent
5615898dd0
commit
cc0fe842f2
|
@ -6,7 +6,6 @@
|
|||
*.ear
|
||||
/target/
|
||||
target
|
||||
com
|
||||
*.project
|
||||
*.classpath
|
||||
/.settings
|
||||
|
|
|
@ -141,7 +141,6 @@ public class TestCode {
|
|||
// System.out.println(test.dd("ddd"));
|
||||
|
||||
|
||||
|
||||
// Package pkg = Package.getPackage("osc.git.eh3.test");
|
||||
// Annotation[] annotations = pkg.getAnnotations();
|
||||
// for (Annotation annotation : annotations) {
|
||||
|
@ -322,10 +321,39 @@ public class TestCode {
|
|||
// System.out.println(jsonParam);
|
||||
|
||||
|
||||
String head = "00,";
|
||||
head = head.substring(0, head.lastIndexOf(","));
|
||||
System.out.println(head);
|
||||
// String head = "00,";
|
||||
// head = head.substring(0, head.lastIndexOf(","));
|
||||
// System.out.println(head);
|
||||
//
|
||||
// String ip = "127, 0, 0,1";
|
||||
// // String [] s = ip.split(".");
|
||||
// String[] s = ip.split("\\,");
|
||||
// for (String string : s) {
|
||||
// System.out.println(string);
|
||||
// }
|
||||
//
|
||||
// Object str = null;
|
||||
//// String dd = (String)str;
|
||||
// String dd = String.valueOf(str);
|
||||
// System.out.println(String.valueOf(str) == String.valueOf("null"));
|
||||
|
||||
|
||||
String sr = "2016-05-25 00:39:33,285 zanadu INFO \"39.159.247.16\" \"Mozilla/5.0 (iPhone; CPU iPhone OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4\" \"http://site.pxene.com/Audi2016Q2Wap/?bid=7ef9ab83e32c4f9c80312b92fba261b1&mapid=0055cb29-dee1-4e77-81bb-0991d2d644c8\" \"load success:Audi load success:bid=7ef9ab83e32c4f9c80312b92fba261b1&mapid=0055cb29-dee1-4e77-81bb-0991d2d644c8\"";
|
||||
String[] split = sr.split("\"");
|
||||
for (String s1 : split) {
|
||||
System.out.println(s1);
|
||||
}
|
||||
|
||||
|
||||
String date = "Mon May 30 14:42:42 GMT+08:00 2016";
|
||||
System.out.println(date);
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", java.util.Locale.US);
|
||||
|
||||
System.out.println(sdf.format(sdf1.parse(date)));
|
||||
|
||||
System.out.println("可吉可吉");
|
||||
}
|
||||
|
||||
public static Long parseDate(String s) {
|
||||
|
@ -344,7 +372,7 @@ public class TestCode {
|
|||
return time;
|
||||
}
|
||||
|
||||
public <B> B dd(B t){
|
||||
public <B> B dd(B t) {
|
||||
return t;
|
||||
}
|
||||
|
||||
|
@ -353,7 +381,7 @@ public class TestCode {
|
|||
return tSet;
|
||||
}
|
||||
|
||||
public static <T extends Object> void printArrs(T[] arrs){
|
||||
public static <T extends Object> void printArrs(T[] arrs) {
|
||||
for (T t : arrs) {
|
||||
System.out.println(t);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import osc.git.eh3.utils.Base64;
|
|||
import osc.git.eh3.utils.HttpClientUtil;
|
||||
|
||||
public class TestOpenPuton {
|
||||
public static String URL = "http://127.0.0.1:8080/dsp-open/pxene/dsp.do";
|
||||
private static String URL = "http://127.0.0.1:8080/dsp-open/pxene/dsp.do";
|
||||
private static String key = "adjdjfjfjfjdkdkd";//
|
||||
private static String appid = "t123456";// 用户
|
||||
private static String token = "cst123456";// 令牌
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<javaClientGenerator type="XMLMAPPER" targetPackage="com.pxene.dsp.archer.dao" targetProject="src/main/java">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
</javaClientGenerator>
|
||||
<table tableName="dsp_t_open_data_query" domainObjectName="OpenDataQueryModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true" />
|
||||
<table tableName="dsp_t_advertiser" domainObjectName="AdvertiserModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true" />
|
||||
<!--
|
||||
<table tableName="dsp_t_open_request_data" domainObjectName="OpenRequestDataModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"></table>
|
||||
<table tableName="dsp_t_amnet_ad_owner" domainObjectName="AmnetAdOwnerModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"></table>
|
||||
|
|
Loading…
Reference in New Issue