chore: 规范group_id名称
This commit is contained in:
parent
9d1c7cf2e4
commit
75285f4585
|
@ -18,7 +18,7 @@ public class PlatformPluginListener {
|
||||||
private PlatformPluginService platformPluginService;
|
private PlatformPluginService platformPluginService;
|
||||||
|
|
||||||
// groupId 必须是每个实例唯一
|
// 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) {
|
public void handlePluginChange(ConsumerRecord<?, String> record) {
|
||||||
LogUtil.info("track service consume platform_plugin add message, plugin id: " + record);
|
LogUtil.info("track service consume platform_plugin add message, plugin id: " + record);
|
||||||
String[] info = record.value().split(":");
|
String[] info = record.value().split(":");
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class PlatformPluginListener {
|
||||||
private PlatformPluginService platformPluginService;
|
private PlatformPluginService platformPluginService;
|
||||||
|
|
||||||
// groupId 必须是每个实例唯一
|
// 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) {
|
public void handlePluginChange(ConsumerRecord<?, String> record) {
|
||||||
LogUtil.info("track service consume platform_plugin add message, plugin id: " + record);
|
LogUtil.info("track service consume platform_plugin add message, plugin id: " + record);
|
||||||
String[] info = record.value().split(":");
|
String[] info = record.value().split(":");
|
||||||
|
|
Loading…
Reference in New Issue