mirror of
https://github.com/201206030/novel.git
synced 2025-06-24 08:06:39 +00:00
修复爬虫运行停止后有时打不开的bug
This commit is contained in:
@ -100,6 +100,16 @@ public class BookCrawlServiceImpl implements BookCrawlService {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
switch (bookCrawl.getCrawlWebCode()) {
|
||||
case 1: {
|
||||
isInteruptBiquDaoCrawl = false;
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
isInteruptBiquTaCrawl = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
crawlBook(bookCrawl);
|
||||
}
|
||||
|
||||
|
@ -35,9 +35,9 @@ spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driverClassName: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://47.106.243.172:3306/books?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://127.0.0.1:3306/books?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
||||
username: books
|
||||
password: books!8888
|
||||
password: books
|
||||
#password:
|
||||
initialSize: 1
|
||||
minIdle: 3
|
||||
|
Reference in New Issue
Block a user