如何在消息格式中添加属性的字符串值(来自用户实例)?
// I want to access a property from the user and put it into the message
@Message(value = "the user: {user.id} - {user.name}", format = Message.Format.MESSAGE_FORMAT)
void test(User user);
我怎样才能做到这一点?
如何在消息格式中添加属性的字符串值(来自用户实例)?
// I want to access a property from the user and put it into the message
@Message(value = "the user: {user.id} - {user.name}", format = Message.Format.MESSAGE_FORMAT)
void test(User user);
我怎样才能做到这一点?