chore: 规范group_id名称

This commit is contained in:
CaptainB 2023-03-20 13:35:08 +08:00 committed by f2c-ci-robot[bot]
parent 9d1c7cf2e4
commit 75285f4585
2 changed files with 2 additions and 2 deletions

View File

@ -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(":");

View File

@ -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(":");