在 Spring Boot (Websockets) 中
我刚看到这个例子:
messaging.convertAndSendToUser( username, "/queue/notifications",
new Notification("You just got mentioned!"));
Run Code Online (Sandbox Code Playgroud)
这家伙从哪里得到用户名?我找不到任何关于从哪里获得该用户名的提及......