@Component public class MessageMatcher extends Object
public boolean matches(String pattern, String type, MessageFromClient message)
pattern - 与message的destination属性匹配的模板,可以是通配符message - 客户端消息type - 消息类型true 验证成功,false 验证失败Copyright © 2019. All rights reserved.