开发者社区> 问答> 正文

org.springframework.messaging.converter.?报错

Spring websocket 接受参数报错,代码如下,求大神指教:

@MessageMapping("/MsgDispatcher")
    public void MsgDispatcher(String msg) {

        logger.debug("调试","接到了");
        this.template.convertAndSend("/topic/greetings", "123");
    }



展开
收起
爱吃鱼的程序员 2020-06-09 13:26:36 625 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    自己解决了:<atarget="_blank"rel="nofollow">总结在此

    2020-06-09 13:26:51
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
introduction to Apache Bean 立即下载
Apache Wicket User Guide - Ref 立即下载
Data-Driven Water Security with Bluemix Apache Spark Service 立即下载