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
84fd20f1
Commit
84fd20f1
authored
Aug 14, 2020
by
马黎滨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时器pom发布
parent
1c4d8472
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
17 deletions
+31
-17
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
+0
-0
src/main/resources/log4j2.xml
+2
-1
No files found.
pom.xml
View file @
84fd20f1
...
@@ -143,6 +143,19 @@
...
@@ -143,6 +143,19 @@
implementation=
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"
>
implementation=
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"
>
<mainClass>
com.zhiwei.searchhotcrawler.run.HotSearchRun
</mainClass>
<mainClass>
com.zhiwei.searchhotcrawler.run.HotSearchRun
</mainClass>
</transformer>
</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>
</transformers>
</configuration>
</configuration>
</execution>
</execution>
...
...
src/main/java/com/zhiwei/searchhotcrawler/run/HotSearchRun.java
View file @
84fd20f1
...
@@ -46,18 +46,18 @@ public class HotSearchRun {
...
@@ -46,18 +46,18 @@ public class HotSearchRun {
//采集程序启动
//采集程序启动
new
WeiboHotSearchRun
().
start
();
//
new WeiboHotSearchRun().start();
new
BaiduHotSearchRun
().
start
();
//
new BaiduHotSearchRun().start();
// new SougoHotSearchRun().start();
//
//
new SougoHotSearchRun().start();
new
DouyinHotSearchRun
().
start
();
//
new DouyinHotSearchRun().start();
// new ZhihuHotSearchRun().start();
//
//
new ZhihuHotSearchRun().start();
new
WeiboSuperTopicRun
().
start
();
//
new WeiboSuperTopicRun().start();
new
WeiboTopicRun
().
start
();
//
new WeiboTopicRun().start();
// new ToutiaoHotSearchRun().start();
//
//
new ToutiaoHotSearchRun().start();
// new ZhihuTopSearchRun().start();
//
//
new ZhihuTopSearchRun().start();
new
ZhihuChildHotSearchRun
().
start
();
//
new ZhihuChildHotSearchRun().start();
new
ThreadOneRun
().
start
();
//
new ThreadOneRun().start();
// //抖音链接更新
//
//
//抖音链接更新
new
DouYinUrlHotSearchRun
().
start
();
//
new DouYinUrlHotSearchRun().start();
}
}
}
}
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
View file @
84fd20f1
...
@@ -21,9 +21,9 @@ import java.util.ArrayList;
...
@@ -21,9 +21,9 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
//
@Component
@Component
//
@EnableScheduling
@EnableScheduling
//
@EnableAsync
@EnableAsync
public
class
GatherTimer
{
public
class
GatherTimer
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
GatherTimer
.
class
);
private
Logger
logger
=
LoggerFactory
.
getLogger
(
GatherTimer
.
class
);
...
...
src/main/resources/applicationContext.xml
View file @
84fd20f1
src/main/resources/log4j2.xml
View file @
84fd20f1
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
<Appenders>
<Appenders>
<!-- 定义日志输出地 -->
<!-- 定义日志输出地 -->
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<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>
</Console>
<RollingRandomAccessFile
name=
"LogFile"
<RollingRandomAccessFile
name=
"LogFile"
fileName=
"${LOG_HOME}/${LOG_FILE}.log"
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