微调
This commit is contained in:
@@ -15,6 +15,7 @@ public abstract class BaseMessage {
|
||||
|
||||
/**
|
||||
* 业务键,用于RocketMQ控制台查看消费情况
|
||||
* 为了保证唯一性,使用雪花算法生成一个随机id
|
||||
*/
|
||||
protected String key = IdUtil.getSnowflake().nextIdStr();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user