Skip to content

Commit

Permalink
默认关闭Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghaomiao committed Dec 5, 2019
1 parent 3cd543a commit 778f60c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion spring-boot-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<dependency>
<groupId>cn.wanghaomiao</groupId>
<artifactId>SeimiCrawler</artifactId>
<version>2.1.1</version>
<version>2.1.2</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @author github.com/zhegexiaohuozi [email protected]
* @since 2015/10/21.
*/
@Crawler(name = "DefRedis",queue = DefaultRedisQueue.class,useUnrepeated = false)
//@Crawler(name = "DefRedis",queue = DefaultRedisQueue.class,useUnrepeated = false)
public class DefaultRedisQueueEG extends BaseSeimiCrawler {
@Override
public String[] startUrls() {
Expand Down
4 changes: 2 additions & 2 deletions spring-boot-example/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
security.basic.enabled=false

seimi.crawler.enabled=true
seimi.crawler.names=DefRedis,test
seimi.crawler.enable-redisson-queue=true
seimi.crawler.names=basic_a
seimi.crawler.enable-redisson-queue=false
#seimi.crawler.bloom-filter-expected-insertions=
#seimi.crawler.bloom-filter-false-probability=
#seimi.crawler.seimi-agent-host=
Expand Down
60 changes: 30 additions & 30 deletions spring-boot-example/src/main/resources/seimi-app.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,35 @@
http://redisson.org/schema/redisson/redisson.xsd">


<redisson:client
id="redisson"
name="test_redisson"
>
<!--
这里的name属性和qualifier子元素不能同时使用。
<!-- <redisson:client-->
<!-- id="redisson"-->
<!-- name="test_redisson"-->
<!-- >-->
<!-- &lt;!&ndash;-->
<!-- 这里的name属性和qualifier子元素不能同时使用。-->

id和name的属性都可以被用来作为qualifier的备选值。
-->
<!--<qualifier value="redisson3"/>-->
<redisson:single-server
idle-connection-timeout="10000"
ping-timeout="1000"
connect-timeout="10000"
timeout="3000"
retry-attempts="3"
retry-interval="1500"
reconnection-timeout="3000"
failed-attempts="3"
subscriptions-per-connection="5"
client-name="none"
address="redis://127.0.0.1:6379"
subscription-connection-minimum-idle-size="1"
subscription-connection-pool-size="50"
connection-minimum-idle-size="10"
connection-pool-size="64"
database="0"
dns-monitoring="false"
dns-monitoring-interval="5000"
/>
</redisson:client>
<!-- id和name的属性都可以被用来作为qualifier的备选值。-->
<!-- &ndash;&gt;-->
<!-- &lt;!&ndash;<qualifier value="redisson3"/>&ndash;&gt;-->
<!-- <redisson:single-server-->
<!-- idle-connection-timeout="10000"-->
<!-- ping-timeout="1000"-->
<!-- connect-timeout="10000"-->
<!-- timeout="3000"-->
<!-- retry-attempts="3"-->
<!-- retry-interval="1500"-->
<!-- reconnection-timeout="3000"-->
<!-- failed-attempts="3"-->
<!-- subscriptions-per-connection="5"-->
<!-- client-name="none"-->
<!-- address="redis://127.0.0.1:6379"-->
<!-- subscription-connection-minimum-idle-size="1"-->
<!-- subscription-connection-pool-size="50"-->
<!-- connection-minimum-idle-size="10"-->
<!-- connection-pool-size="64"-->
<!-- database="0"-->
<!-- dns-monitoring="false"-->
<!-- dns-monitoring-interval="5000"-->
<!-- />-->
<!-- </redisson:client>-->
</beans>

0 comments on commit 778f60c

Please sign in to comment.