Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
谢明辉
/
VVAS-Match
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9beaf0aa
authored
Jun 24, 2025
by
wenshuaiying
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
100线程来写入es数据
1 parent
a4242f63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
src/main/java/com/viontech/match/MatchApp.java
src/main/java/com/viontech/match/config/AsyncConfig.java
src/main/java/com/viontech/match/MatchApp.java
View file @
9beaf0a
...
...
@@ -3,8 +3,10 @@ package com.viontech.match;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.scheduling.annotation.EnableAsync
;
@SpringBootApplication
@EnableAsync
@ComponentScan
(
basePackages
=
{
"com.viontech"
})
public
class
MatchApp
{
public
static
void
main
(
String
[]
args
)
{
...
...
src/main/java/com/viontech/match/config/AsyncConfig.java
View file @
9beaf0a
...
...
@@ -12,7 +12,7 @@ public class AsyncConfig {
@Bean
(
name
=
"taskExecutor"
)
public
Executor
taskExecutor
()
{
ThreadPoolTaskExecutor
executor
=
new
ThreadPoolTaskExecutor
();
executor
.
setCorePoolSize
(
5
0
);
executor
.
setCorePoolSize
(
10
0
);
executor
.
setMaxPoolSize
(
100
);
executor
.
setQueueCapacity
(
10000
);
executor
.
setThreadNamePrefix
(
"Async-"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment