Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
950b176f
Commit
950b176f
authored
Jan 29, 2019
by
Hong
Browse files
修改线程池位置
parent
12786648
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxHomeController.java
View file @
950b176f
...
@@ -79,6 +79,7 @@ public class WxHomeController {
...
@@ -79,6 +79,7 @@ public class WxHomeController {
if
(
HomeCacheManager
.
hasData
(
HomeCacheManager
.
INDEX
))
{
if
(
HomeCacheManager
.
hasData
(
HomeCacheManager
.
INDEX
))
{
return
ResponseUtil
.
ok
(
HomeCacheManager
.
getCacheData
(
HomeCacheManager
.
INDEX
));
return
ResponseUtil
.
ok
(
HomeCacheManager
.
getCacheData
(
HomeCacheManager
.
INDEX
));
}
}
ExecutorService
executorService
=
Executors
.
newFixedThreadPool
(
10
);
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
...
@@ -137,6 +138,7 @@ public class WxHomeController {
...
@@ -137,6 +138,7 @@ public class WxHomeController {
}
}
//缓存数据
//缓存数据
HomeCacheManager
.
loadData
(
HomeCacheManager
.
INDEX
,
data
);
HomeCacheManager
.
loadData
(
HomeCacheManager
.
INDEX
,
data
);
executorService
.
shutdown
();
return
ResponseUtil
.
ok
(
data
);
return
ResponseUtil
.
ok
(
data
);
}
}
...
...
Write
Preview
Supports
Markdown
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