Commit 688805e7 by yangchen

更新config文件

parent 16ae4b25
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.zhiwei</groupId>
<artifactId>weibohotcrawler</artifactId>
......@@ -13,6 +14,12 @@
<version>0.0.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.zhiwei.weibo4j</groupId>
<artifactId>weibo4jutil</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
......
......@@ -8,13 +8,13 @@ public class Config {
Properties conf = null;
try {
InputStream is = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("rsidClient.properties");
.getResourceAsStream("rsid.properties");
conf = new Properties();
conf.load(is);
is.close();
rsidUrl = conf.getProperty("rsidUrl");
rsidGroup = conf.getProperty("rsidGroup");
redisWeiboKey = conf.getProperty("redisWeiboKey");
rsidUrl = conf.getProperty("zookeeper");
rsidGroup = conf.getProperty("group");
redisWeiboKey = conf.getProperty("rsidType");
} catch (Exception e) {
e.printStackTrace();
......
......@@ -19,6 +19,7 @@ public class GetData {
* @Description 启动采集程序
* @param token
*/
public static void start(String token){
new DataCrawlerStart().start();
DataUpdate dataUpdate = new DataUpdate(token);
......
rsidUrl = zookeeper://192.168.0.234:2181
rsidGroup = rsidserver
redisWeiboKey = weibo
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment