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 @@ </parent> <groupId>xyz.zinglizingli</groupId> <artifactId>novel-front</artifactId> - <version>2.4.0.beta</version> + <version>2.4.1.beta</version> <name>novel-front</name> <description>小说精品楼-前台web网站</description> 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<BookParseLog> queryBookParseLogs() { List<BookParseLog> 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