add handle multihomepage

This commit is contained in:
waterbeach 2017-02-17 16:27:22 +08:00
parent 677f5d74ee
commit 6b4c829653
3 changed files with 515 additions and 415 deletions

View File

@ -8,7 +8,7 @@ public class TableName {
public static String taggingsTableName = "taggings";
public static String tagsTableName = "tags";
public static String eddRelationTableName = "edd_relations";
public static String openSourceProjectsTableName = "open_source_projects_17";
public static String openSourceProjectsTableName = "open_source_projects";
public static String sourceforgeTableName = "sourceforge_project";
public static String openhubTableName = "openhub_project";
public static String oschinaTableName = "oschina_project";

View File

@ -43,11 +43,24 @@ public class TestDate {
// System.out.println(a.toString());
// System.out.println(b);
// System.out.println(a.after(b));
}
public void start_test(){
String homepage = "http://github.com/apache/abdera;http://incubator.apache.org/abdera/";
String homepage1 = "http://incubator.apache.org/abdera/";
String arr[] = homepage1.split(";");
System.out.println(arr.length);
for(String a : arr){
System.out.println(a);
}
}
public static void main(String[] args) {
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:/applicationContext*.xml");
TestDate Main = applicationContext.getBean(TestDate.class);
Main.start();
Main.start_test();
// StringBuilder a = new StringBuilder(",");
// String b = StringHandler.removeFirstEndComma(a.toString());
// System.out.println(b);