Commit 086b7e223ec37d0fa1188c056c6c9fcf3d6dbfb8
1 parent
0b8091ff
feature(*): 对接配置中心
- 对接配置中心
Showing
3 changed files
with
0 additions
and
6 deletions
fw-hermes-server/src/main/java/cn/fw/hermes/task/MessageManaTask.kt
... | ... | @@ -2,7 +2,6 @@ package cn.fw.hermes.task |
2 | 2 | |
3 | 3 | import cn.fw.hermes.service.biz.MessageManaBizService |
4 | 4 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty |
5 | -import org.springframework.cloud.context.config.annotation.RefreshScope | |
6 | 5 | import org.springframework.scheduling.annotation.Scheduled |
7 | 6 | import org.springframework.stereotype.Component |
8 | 7 | import java.time.LocalDate |
... | ... | @@ -16,7 +15,6 @@ import java.time.LocalDate |
16 | 15 | * @date : 2023-07-24 15:44 |
17 | 16 | */ |
18 | 17 | @Component |
19 | -@RefreshScope | |
20 | 18 | @ConditionalOnProperty(prefix = "task", name = ["switch"], havingValue = "on") |
21 | 19 | class MessageManaTask(private val messageManaBizService: MessageManaBizService) { |
22 | 20 | /** | ... | ... |
fw-hermes-server/src/main/java/cn/fw/hermes/task/MessageSaveTask.kt
... | ... | @@ -9,7 +9,6 @@ import cn.fw.hermes.service.biz.MsgPrepareBizService |
9 | 9 | import cn.fw.hermes.service.data.MessageDataService |
10 | 10 | import cn.hutool.json.JSONUtil |
11 | 11 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty |
12 | -import org.springframework.cloud.context.config.annotation.RefreshScope | |
13 | 12 | import org.springframework.data.redis.core.StringRedisTemplate |
14 | 13 | import org.springframework.scheduling.annotation.Async |
15 | 14 | import org.springframework.scheduling.annotation.Scheduled |
... | ... | @@ -27,7 +26,6 @@ import java.util.concurrent.CompletableFuture |
27 | 26 | * @date : 2023-07-24 15:05 |
28 | 27 | */ |
29 | 28 | @Component |
30 | -@RefreshScope | |
31 | 29 | @ConditionalOnProperty(prefix = "task", name = ["switch"], havingValue = "on") |
32 | 30 | class MessageSaveTask( |
33 | 31 | private val stringRedisTemplate: StringRedisTemplate, | ... | ... |
fw-hermes-server/src/main/java/cn/fw/hermes/task/MessageSendTask.kt
... | ... | @@ -10,7 +10,6 @@ import cn.fw.hermes.service.data.MessageHistoryService |
10 | 10 | import com.baomidou.mybatisplus.core.toolkit.Wrappers |
11 | 11 | import org.springframework.beans.factory.annotation.Autowired |
12 | 12 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty |
13 | -import org.springframework.cloud.context.config.annotation.RefreshScope | |
14 | 13 | import org.springframework.data.redis.core.StringRedisTemplate |
15 | 14 | import org.springframework.scheduling.annotation.Async |
16 | 15 | import org.springframework.scheduling.annotation.Scheduled |
... | ... | @@ -27,7 +26,6 @@ import java.time.LocalDateTime |
27 | 26 | * @date : 2023-07-24 15:44 |
28 | 27 | */ |
29 | 28 | @Component |
30 | -@RefreshScope | |
31 | 29 | @ConditionalOnProperty(prefix = "task", name = ["switch"], havingValue = "on") |
32 | 30 | class MessageSendTask @Autowired constructor( |
33 | 31 | private val stringRedisTemplate: StringRedisTemplate, | ... | ... |