测试项目更新

dev
lixiangrong 2016-06-07 17:47:43 +08:00
parent 5615898dd0
commit cc0fe842f2
4 changed files with 181 additions and 154 deletions

1
.gitignore vendored
View File

@ -6,7 +6,6 @@
*.ear *.ear
/target/ /target/
target target
com
*.project *.project
*.classpath *.classpath
/.settings /.settings

View File

@ -141,7 +141,6 @@ public class TestCode {
// System.out.println(test.dd("ddd")); // System.out.println(test.dd("ddd"));
// Package pkg = Package.getPackage("osc.git.eh3.test"); // Package pkg = Package.getPackage("osc.git.eh3.test");
// Annotation[] annotations = pkg.getAnnotations(); // Annotation[] annotations = pkg.getAnnotations();
// for (Annotation annotation : annotations) { // for (Annotation annotation : annotations) {
@ -322,10 +321,39 @@ public class TestCode {
// System.out.println(jsonParam); // System.out.println(jsonParam);
String head = "00,"; // String head = "00,";
head = head.substring(0, head.lastIndexOf(",")); // head = head.substring(0, head.lastIndexOf(","));
System.out.println(head); // 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) { public static Long parseDate(String s) {

View File

@ -10,7 +10,7 @@ import osc.git.eh3.utils.Base64;
import osc.git.eh3.utils.HttpClientUtil; import osc.git.eh3.utils.HttpClientUtil;
public class TestOpenPuton { 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 key = "adjdjfjfjfjdkdkd";//
private static String appid = "t123456";// 用户 private static String appid = "t123456";// 用户
private static String token = "cst123456";// 令牌 private static String token = "cst123456";// 令牌

View File

@ -23,7 +23,7 @@
<javaClientGenerator type="XMLMAPPER" targetPackage="com.pxene.dsp.archer.dao" targetProject="src/main/java"> <javaClientGenerator type="XMLMAPPER" targetPackage="com.pxene.dsp.archer.dao" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/> <property name="enableSubPackages" value="true"/>
</javaClientGenerator> </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_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> <table tableName="dsp_t_amnet_ad_owner" domainObjectName="AmnetAdOwnerModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"></table>