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> <modelVersion>4.0.0</modelVersion>
<groupId>com.zhiwei</groupId> <groupId>com.zhiwei</groupId>
<artifactId>weibohotcrawler</artifactId> <artifactId>weibohotcrawler</artifactId>
...@@ -13,6 +14,12 @@ ...@@ -13,6 +14,12 @@
<version>0.0.2-SNAPSHOT</version> <version>0.0.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.zhiwei.weibo4j</groupId>
<artifactId>weibo4jutil</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId> <groupId>javax.mail</groupId>
<artifactId>mail</artifactId> <artifactId>mail</artifactId>
<version>1.4.7</version> <version>1.4.7</version>
......
...@@ -8,13 +8,13 @@ public class Config { ...@@ -8,13 +8,13 @@ public class Config {
Properties conf = null; Properties conf = null;
try { try {
InputStream is = Thread.currentThread().getContextClassLoader() InputStream is = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("rsidClient.properties"); .getResourceAsStream("rsid.properties");
conf = new Properties(); conf = new Properties();
conf.load(is); conf.load(is);
is.close(); is.close();
rsidUrl = conf.getProperty("rsidUrl"); rsidUrl = conf.getProperty("zookeeper");
rsidGroup = conf.getProperty("rsidGroup"); rsidGroup = conf.getProperty("group");
redisWeiboKey = conf.getProperty("redisWeiboKey"); redisWeiboKey = conf.getProperty("rsidType");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
...@@ -19,6 +19,7 @@ public class GetData { ...@@ -19,6 +19,7 @@ public class GetData {
* @Description 启动采集程序 * @Description 启动采集程序
* @param token * @param token
*/ */
public static void start(String token){ public static void start(String token){
new DataCrawlerStart().start(); new DataCrawlerStart().start();
DataUpdate dataUpdate = new DataUpdate(token); 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