Commit 1ea9bb86 by zhiwei

修复配置文件错误问题

parent cb82a2d5
...@@ -50,16 +50,19 @@ ...@@ -50,16 +50,19 @@
<artifactId>crawler-core</artifactId> <artifactId>crawler-core</artifactId>
<version>0.5.2-RELEASE</version> <version>0.5.2-RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.zhiwei.middleware</groupId> <groupId>com.zhiwei.middleware</groupId>
<artifactId>cleaner-unified-filter</artifactId> <artifactId>cleaner-unified-filter</artifactId>
<version>0.0.7-SNAPSHOT</version> <version>1.0.1.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.zhiwei.base</groupId> <groupId>com.zhiwei.base</groupId>
<artifactId>base-objects</artifactId> <artifactId>base-objects</artifactId>
<version>0.2.7-SNAPSHOT</version> <version>1.0.1.RELEASE</version>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -8,7 +8,7 @@ public class CleanerFilterConfig { ...@@ -8,7 +8,7 @@ public class CleanerFilterConfig {
Properties conf = null; Properties conf = null;
try { try {
InputStream is = Thread.currentThread().getContextClassLoader() InputStream is = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("redis.properties"); .getResourceAsStream("cleanerfilter.properties");
conf = new Properties(); conf = new Properties();
conf.load(is); conf.load(is);
is.close(); is.close();
......
...@@ -48,7 +48,7 @@ public class RsidClientTemplate { ...@@ -48,7 +48,7 @@ public class RsidClientTemplate {
public static boolean addFilterUrl(CompleteText completeText){ public static boolean addFilterUrl(CompleteText completeText){
for(int i=0; i<3; i++){ for(int i=0; i<3; i++){
try { try {
return client.contains(completeText.filterInfo()); return client.contains(completeText.filterInfo(), false);
} catch (Exception e) { } catch (Exception e) {
logger.error("判断此条网媒消息是否存在出现问题", e); logger.error("判断此条网媒消息是否存在出现问题", e);
ZhiWeiTools.sleep(500); ZhiWeiTools.sleep(500);
......
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