![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
三月大计划
这个作者很懒,什么都没留下…
展开
-
springboot+netty+心跳+marshalling序列化+无情的Demo
无情的Demo机器这里只做Demo的演示,具体代码已经上传到github了,都是借鉴别人的哈V 传送门https://github.com/viviandavid/springboot-gatherdemo几种场景1.服务端启动,客户端连接成功2.服务端未启动,客户端尝试重新连接,服务端启动成功,客户端连接成功3.已经建立连接,服务端宕机,客户端尝试重连。服务端启动,客户端连接成功。服务端就不贴了,就是关了重启一下。4.已经建立连接,客户端30秒没有数据,服务端发送心跳包进行确认原创 2020-11-27 16:49:48 · 219 阅读 · 0 评论 -
Failed to find the root WebApplicationContext. Was ContextLoaderListener not used?(WebScoket 问题)
问题描述springboot websocket 连接时,如果设置为SpringConfigurator,如下所示:@ServerEndpoint(value = “/websocket/lsmsp”,configurator = SpringConfigurator.class)当接收数据的时候,就会报错:Failed to find the root WebApplicationContext. Was ContextLoaderListener not used?百度半天,都是复制粘贴,没有原创 2020-06-04 10:54:45 · 2274 阅读 · 3 评论 -
springboot websocket 实时刷新(亲测可用版)
webSocket前后端建立连接,后端可以定时刷新数据到前端进行展示。依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</a...原创 2020-04-13 19:25:10 · 4205 阅读 · 2 评论