Websocket Tomcat说:[OnMessage]方法上没有有效负载参数
ServerEndPoint上的我的批注: @ServerEndpointvalue=/portal/{action}/{num}/{msg},configurator=GetHttpSessionConfigurator.class onMessage方法中的我的注释:Websocket Tomcat说:[OnMessage]方法上没有有效负载参数,websocket,Websocket,ServerEndPoint上的我的批注: @ServerEndpointvalue=/portal/{action}/{num}/{msg},configurator=GetHttpSessionConfigurator.class onMessage方法中的我的注释: @OnMessage public void onMessage(@PathParam("action") String action, @PathParam("num") String num, @PathParam("ms
@OnMessage
public void onMessage(@PathParam("action") String action, @PathParam("num") String num, @PathParam("msg") String msg, Session session)
我知道。需要添加一个参数来接收另一条消息。因此,只需删除@OnMethod注释的[Method]参数的第三个注释