|
@@ -13,15 +13,15 @@ public class ImportPaperByCourse {
|
|
|
private static Logger logger = LogManager.getLogger(ImportPaperByCourse.class);
|
|
|
private final static String sourceDir = "d:/yunkai/";
|
|
|
|
|
|
- private static String host = "http://localhost:8008";
|
|
|
- private static String rootOrgId = "149";
|
|
|
- private static String key = "U_C_149_170";
|
|
|
- private static String token = "cac2f518a68346fe860fcb8a616bb458";
|
|
|
+// private static String host = "http://localhost:8008";
|
|
|
+// private static String rootOrgId = "149";
|
|
|
+// private static String key = "U_C_149_170";
|
|
|
+// private static String token = "cac2f518a68346fe860fcb8a616bb458";
|
|
|
|
|
|
-// private static String host = "http://192.168.1.249:8008";
|
|
|
-// private static String rootOrgId = "17351";
|
|
|
-// private static String key = "U_C_17351_646523";
|
|
|
-// private static String token = "8a15aeba624d467baacbea082119f4f6";
|
|
|
+ private static String host = "http://192.168.1.249:8008";
|
|
|
+ private static String rootOrgId = "17351";
|
|
|
+ private static String key = "U_C_17351_646523";
|
|
|
+ private static String token = "96eca58f7102483f97ea4f1c8fbeca64";
|
|
|
|
|
|
private static AtomicInteger count=new AtomicInteger(0);
|
|
|
|
|
@@ -36,11 +36,12 @@ public class ImportPaperByCourse {
|
|
|
param.put("key", key);
|
|
|
param.put("token", token);
|
|
|
MyProducer pro=new MyProducer();
|
|
|
- pro.startDispose(MyConsumer.class, 8, param);
|
|
|
+ pro.startDispose(MyConsumer.class, 2, param);
|
|
|
} catch (Exception e) {
|
|
|
logger.error(e.getCause(), e);
|
|
|
}
|
|
|
Date end=new Date();
|
|
|
+ OKHttpUtil.close();
|
|
|
logger.debug("导入结束,耗时:"+((end.getTime()-start.getTime())/1000));
|
|
|
}
|
|
|
|