小编dur*_*k10的帖子

简单:convertAndSendToUser 我从哪里得到用户名?

在 Spring Boot (Websockets) 中

我刚看到这个例子:

messaging.convertAndSendToUser( username, "/queue/notifications",
                       new Notification("You just got mentioned!"));
Run Code Online (Sandbox Code Playgroud)

这家伙从哪里得到用户名?我找不到任何关于从哪里获得该用户名的提及......

java spring websocket spring-boot spring-websocket

4
推荐指数
1
解决办法
5915
查看次数

标签 统计

java ×1

spring ×1

spring-boot ×1

spring-websocket ×1

websocket ×1