
im
哈里哈气
个人博客:http://zhaoxincheng.com/
展开
-
使用spring boot +WebSocket的那些坑
springboot和websocket通讯时的坑有一个:下面这个东西要有import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.web.socket.server.st...原创 2018-09-04 22:17:32 · 4494 阅读 · 0 评论 -
Spring boot WebSocket 注入失败
1.在@ServerEndpoint()下面添加 //此处是解决无法注入的关键 private static ApplicationContext applicationContext; //这里是service private WebSocketService webSocketService;2.继续添加public static void s...原创 2018-09-08 11:47:19 · 1550 阅读 · 0 评论 -
使用springboot+layim+websocket实现webim
**使用springboot+layim+websocket实现webim**先来两张图吧项目介绍采用springboot和layim构建webim,使用websocket作为通讯协议,目前已经能够正常聊天,并没有对好友的操作进行实现,查找和加好友没有实现,有需要的可以自行实现安装教程sql自行导入,配置文件更改数据库信息http://ip:8080/login登陆入口目...原创 2018-10-20 12:34:56 · 3831 阅读 · 7 评论 -
websocket原理
先来看这图有没有发现它比普通的http多了几个东西,Origin: http://0.0.0.0:8000Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bitsSec-WebSocket-Key: zNR++QO8YYpHGGN/dyeg7A==Sec-WebSocket-Version: 13Upgr...原创 2019-01-22 18:42:29 · 407 阅读 · 0 评论