Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
cloud-backend
Commits
9bc85b46
Commit
9bc85b46
authored
May 31, 2022
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.0
parent
bf967150
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
user-server/src/main/java/com/zq/user/UserApplication.java
+2
-0
user-server/src/main/java/com/zq/user/service/UserService.java
+2
-1
xxx-common-utils/src/main/java/com/zq/common/config/base/AsyncConfig.java
+1
-1
No files found.
user-server/src/main/java/com/zq/user/UserApplication.java
View file @
9bc85b46
...
...
@@ -5,12 +5,14 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
/**
* @author wilmiam
* @since 2021-07-12 18:26
*/
@EnableAsync
@EnableCaching
@EnableScheduling
@MapperScan
({
"com.zq.user.dao"
,
"com.zq.logging.mapper"
})
...
...
user-server/src/main/java/com/zq/user/service/UserService.java
View file @
9bc85b46
...
...
@@ -154,7 +154,8 @@ public class UserService {
// @Cacheable
public
AppUser
getUserInfo
(
String
userId
)
{
return
userDao
.
selectById
(
userId
);
AppUser
appUser
=
userDao
.
selectById
(
userId
);
return
appUser
;
}
/**
...
...
xxx-common-utils/src/main/java/com/zq/common/config/base/AsyncConfig.java
View file @
9bc85b46
...
...
@@ -52,7 +52,7 @@ public class AsyncConfig implements AsyncConfigurer {
@Override
public
Executor
getAsyncExecutor
()
{
log
.
info
(
">> 初始化spring线程池
..."
);
log
.
info
(
">> 初始化spring线程池
[core-pool={}] [max-pool={}] [queue-capacity={}] [keep-alive-seconds={}]"
,
corePoolSize
,
maxPoolSize
,
queueCapacity
,
threadTimeout
);
ThreadPoolTaskExecutor
threadPoolTaskExecutor
=
new
ThreadPoolTaskExecutor
();
// 当一个任务通过execute(Runnable)方法欲添加到线程池时:
...
...
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