From ef36527ed67f2ee8b2c3b8f29c3bca5aa0bea38c Mon Sep 17 00:00:00 2001
From: xiongxiaoyang <773861846@qq.com>
Date: Mon, 22 Jun 2020 14:34:35 +0800
Subject: [PATCH] =?UTF-8?q?2.4.1=E5=8F=91=E5=B8=83=EF=BC=8C=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E9=83=A8=E5=88=86bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 4 ++--
novel-front/pom.xml | 2 +-
.../xyz/zinglizingli/books/core/listener/StartListener.java | 1 +
.../main/java/xyz/zinglizingli/books/service/BookService.java | 4 +++-
novel-front/src/main/resources/application.yml | 4 ++--
5 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 408fe2f..918fd15 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[](https://cloud.tencent.com/act/cps/redirect?redirect=1052&cps_key=736e609d66e0ac4e57813316cec6fd0b&from=console)
+[](https://cloud.tencent.com/act/cps/redirect?redirect=1052&cps_key=736e609d66e0ac4e57813316cec6fd0b&from=console)
# 小说精品屋
@@ -247,4 +247,4 @@ novel-admin :平台后台管理系统源码(独立项目,按需安装)
精品小说屋所有相关项目均已在开源中国公开,感兴趣的可进入[开源中国](https://www.oschina.net/p/fiction_house)按关键字`精品小说屋`搜索。
-[](https://www.aliyun.com/minisite/goods?userCode=uf4nasee )
\ No newline at end of file
+[](https://www.aliyun.com/minisite/goods?userCode=uf4nasee )
\ No newline at end of file
diff --git a/novel-front/pom.xml b/novel-front/pom.xml
index 03a8924..6b3ad97 100644
--- a/novel-front/pom.xml
+++ b/novel-front/pom.xml
@@ -10,7 +10,7 @@
xyz.zinglizingli
novel-front
- 2.4.0.beta
+ 2.4.1.beta
novel-front
小说精品楼-前台web网站
diff --git a/novel-front/src/main/java/xyz/zinglizingli/books/core/listener/StartListener.java b/novel-front/src/main/java/xyz/zinglizingli/books/core/listener/StartListener.java
index 9e892b5..734a2fa 100644
--- a/novel-front/src/main/java/xyz/zinglizingli/books/core/listener/StartListener.java
+++ b/novel-front/src/main/java/xyz/zinglizingli/books/core/listener/StartListener.java
@@ -66,6 +66,7 @@ public class StartListener implements ServletContextListener {
log.info("updateBooks执行中。。。。。。。。。。。。");
crawlSource.update();
+ Thread.sleep(2000);
} catch (Exception e) {
log.error(e.getMessage(), e);
}
diff --git a/novel-front/src/main/java/xyz/zinglizingli/books/service/BookService.java b/novel-front/src/main/java/xyz/zinglizingli/books/service/BookService.java
index 77db97c..794338d 100644
--- a/novel-front/src/main/java/xyz/zinglizingli/books/service/BookService.java
+++ b/novel-front/src/main/java/xyz/zinglizingli/books/service/BookService.java
@@ -467,7 +467,9 @@ public class BookService {
*/
public List queryBookParseLogs() {
List logs = bookParseLogMapper.queryBookParseLogs();
- SpringUtil.getBean(BookService.class).addBookUpdateCount(logs);
+ if(logs.size()>0) {
+ SpringUtil.getBean(BookService.class).addBookUpdateCount(logs);
+ }
return logs;
}
diff --git a/novel-front/src/main/resources/application.yml b/novel-front/src/main/resources/application.yml
index cf135d6..9e4df5a 100644
--- a/novel-front/src/main/resources/application.yml
+++ b/novel-front/src/main/resources/application.yml
@@ -5,7 +5,7 @@ spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/books?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root
- password:
+ password: test123456
# url: jdbc:mysql://127.0.0.1:3306/books?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
# username: root
# password: test123456
@@ -89,7 +89,7 @@ books:
#爬取的网站名称类型 1:笔趣岛 ,2:笔趣塔,3:顶点小说 ,4:百书斋 更多网站解析中,敬请期待
crawl:
website:
- type: 4
+ type: 3