mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 20:49:56 +08:00
chore: 规范group_id名称
This commit is contained in:
parent
9d1c7cf2e4
commit
75285f4585
@ -18,7 +18,7 @@ public class PlatformPluginListener {
|
||||
private PlatformPluginService platformPluginService;
|
||||
|
||||
// groupId 必须是每个实例唯一
|
||||
@KafkaListener(id = TEST_TRACK_PLATFORM_PLUGIN, topics = KafkaTopicConstants.PLATFORM_PLUGIN, groupId = TEST_TRACK_PLATFORM_PLUGIN + "_" + "#{T(java.util.UUID).randomUUID()})")
|
||||
@KafkaListener(id = TEST_TRACK_PLATFORM_PLUGIN, topics = KafkaTopicConstants.PLATFORM_PLUGIN, groupId = TEST_TRACK_PLATFORM_PLUGIN + "_" + "${random.uuid}")
|
||||
public void handlePluginChange(ConsumerRecord<?, String> record) {
|
||||
LogUtil.info("track service consume platform_plugin add message, plugin id: " + record);
|
||||
String[] info = record.value().split(":");
|
||||
|
@ -17,7 +17,7 @@ public class PlatformPluginListener {
|
||||
private PlatformPluginService platformPluginService;
|
||||
|
||||
// groupId 必须是每个实例唯一
|
||||
@KafkaListener(id = TEST_TRACK_PLATFORM_PLUGIN, topics = KafkaTopicConstants.PLATFORM_PLUGIN, groupId = TEST_TRACK_PLATFORM_PLUGIN + "_" + "#{T(java.util.UUID).randomUUID()})")
|
||||
@KafkaListener(id = TEST_TRACK_PLATFORM_PLUGIN, topics = KafkaTopicConstants.PLATFORM_PLUGIN, groupId = TEST_TRACK_PLATFORM_PLUGIN + "_" + "${random.uuid}")
|
||||
public void handlePluginChange(ConsumerRecord<?, String> record) {
|
||||
LogUtil.info("track service consume platform_plugin add message, plugin id: " + record);
|
||||
String[] info = record.value().split(":");
|
||||
|
Loading…
Reference in New Issue
Block a user