|
@@ -34,8 +34,7 @@ public class WebSocketTest extends WebSocketConfigurationSupport {
|
|
* 5.如果看到后台日志显示:handleMessage,id:0 msg={"cmd":"test"},则代表成功了
|
|
* 5.如果看到后台日志显示:handleMessage,id:0 msg={"cmd":"test"},则代表成功了
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- @Test
|
|
|
|
- public void testWebSocket() throws Exception {
|
|
|
|
|
|
+ public static void main(String[] args) {
|
|
SpringApplication.run(WebSocketTest.class);
|
|
SpringApplication.run(WebSocketTest.class);
|
|
}
|
|
}
|
|
}
|
|
}
|