-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathapplication.properties
More file actions
63 lines (52 loc) · 2.68 KB
/
Copy pathapplication.properties
File metadata and controls
63 lines (52 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
server.port=8088
logging.level.root=INFO
#logging.level.org.spiderflow=DEBUG
#平台最大线程数
spider.thread.max=64
#单任务默认最大线程数
spider.thread.default=8
#设置为true时定时任务才生效
#0.5.1版本改为默认开启
spider.job.enable=true
#爬虫任务的工作空间
spider.workspace=/data/spider
#布隆过滤器默认容量
spider.bloomfilter.capacity=1000000
#布隆过滤器默认容错率
spider.bloomfilter.error-rate=0.0001
#死循环检测(节点执行次数超过该值时认为是死循环)默认值为5000
#spider.detect.dead-cycle=5000
#quartz定时任务线程数,当不够时,可能造成超时丢弃任务,也可以修改misfireThreshold
#spring.quartz.properties.org.quartz.threadPool.threadCount=16
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=GMT+8
spring.jackson.serialization.fail_on_empty_beans=false
spring.mvc.favicon.enabled=false
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=kong@1108yuan
spring.datasource.url=jdbc:mysql://sh-cynosdbmysql-grp-7cwwsldg.sql.tencentcdb.com:24252/spiderflow?useSSL=false&useUnicode=true&characterEncoding=UTF8&autoReconnect=true
#JavaMailSender 邮件发送的配置
spring.mail.protocol=smtp
spring.mail.host=smtp.qq.com
spring.mail.port=465
spring.mail.username=xxxx@qq.com
spring.mail.password=xxxx
spring.mail.default-encoding=UTF-8
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
spring.mail.properties.mail.smtp.socketFactory.port=465
spring.mail.properties.mail.smtp.socketFactory.fallback=false
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration
#selenium 插件配置
#设置chrome的WebDriver驱动路径,下载地址:http://npm.taobao.org/mirrors/chromedriver/,注意版本问题
selenium.driver.chrome=E:/driver/chromedriver.exe
#设置fireFox的WebDriver驱动路径,下载地址:https://github.com/mozilla/geckodriver/releases
selenium.driver.firefox=E:/driver/geckodriver.exe
#爬虫通知相关内容配置,可使用SpiderFlow中的变量名和以下变量名:currentDate:当前发送时间
spider.notice.subject=spider-flow流程通知
spider.notice.content.start=流程开始执行:{name},开始时间:{currentDate}
spider.notice.content.end=流程执行完毕:{name},结束时间:{currentDate}
spider.notice.content.exception=流程发生异常:{name},异常时间:{currentDate}