Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
searchhotcrawler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhiwei
searchhotcrawler
Commits
7d76f93e
Commit
7d76f93e
authored
Aug 14, 2020
by
马黎滨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mlbWork' into 'master'
定时器pom发布 See merge request
!28
parents
95f06f34
84fd20f1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
19 deletions
+33
-19
pom.xml
+13
-0
src/main/java/com/zhiwei/searchhotcrawler/run/HotSearchRun.java
+13
-13
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
+3
-3
src/main/resources/applicationContext.xml
+2
-2
src/main/resources/log4j2.xml
+2
-1
No files found.
pom.xml
View file @
7d76f93e
...
...
@@ -143,6 +143,19 @@
implementation=
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"
>
<mainClass>
com.zhiwei.searchhotcrawler.run.HotSearchRun
</mainClass>
</transformer>
<!-- 不覆盖同名文件,而是追加合并同名文件 -->
<transformer
implementation=
"org.apache.maven.plugins.shade.resource.AppendingTransformer"
>
<resource>
META-INF/spring.handlers
</resource>
</transformer>
<transformer
implementation=
"org.apache.maven.plugins.shade.resource.AppendingTransformer"
>
<resource>
META-INF/spring.schemas
</resource>
</transformer>
<transformer
implementation=
"org.apache.maven.plugins.shade.resource.AppendingTransformer"
>
<resource>
META-INF/spring.tooling
</resource>
</transformer>
<transformer
implementation=
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"
>
<mainClass>
concert.Main
</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
...
...
src/main/java/com/zhiwei/searchhotcrawler/run/HotSearchRun.java
View file @
7d76f93e
...
...
@@ -46,18 +46,18 @@ public class HotSearchRun {
//采集程序启动
new
WeiboHotSearchRun
().
start
();
new
BaiduHotSearchRun
().
start
();
// new SougoHotSearchRun().start();
new
DouyinHotSearchRun
().
start
();
// new ZhihuHotSearchRun().start();
new
WeiboSuperTopicRun
().
start
();
new
WeiboTopicRun
().
start
();
// new ToutiaoHotSearchRun().start();
// new ZhihuTopSearchRun().start();
new
ZhihuChildHotSearchRun
().
start
();
new
ThreadOneRun
().
start
();
// //抖音链接更新
new
DouYinUrlHotSearchRun
().
start
();
//
new WeiboHotSearchRun().start();
//
new BaiduHotSearchRun().start();
//
//
new SougoHotSearchRun().start();
//
new DouyinHotSearchRun().start();
//
//
new ZhihuHotSearchRun().start();
//
new WeiboSuperTopicRun().start();
//
new WeiboTopicRun().start();
//
//
new ToutiaoHotSearchRun().start();
//
//
new ZhihuTopSearchRun().start();
//
new ZhihuChildHotSearchRun().start();
//
new ThreadOneRun().start();
//
//
//抖音链接更新
//
new DouYinUrlHotSearchRun().start();
}
}
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
View file @
7d76f93e
...
...
@@ -21,9 +21,9 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.List
;
//
@Component
//
@EnableScheduling
//
@EnableAsync
@Component
@EnableScheduling
@EnableAsync
public
class
GatherTimer
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
GatherTimer
.
class
);
...
...
src/main/resources/applicationContext.xml
View file @
7d76f93e
...
...
@@ -7,9 +7,9 @@
http://www.springframework.org/schema/context/spring-context-4.2.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd"
>
...
...
src/main/resources/log4j2.xml
View file @
7d76f93e
...
...
@@ -8,7 +8,8 @@
<Appenders>
<!-- 定义日志输出地 -->
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger{36} [%t] - %msg%n"
/>
<!-- <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger{36} [%t] - %msg%n"/>-->
<PatternLayout
pattern=
"%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger{36} - %msg%n"
/>
</Console>
<RollingRandomAccessFile
name=
"LogFile"
fileName=
"${LOG_HOME}/${LOG_FILE}.log"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment