
项目需求
文章平均质量分 89
꧁এ悲宸๓₯㎕
不努力一把,你都不知道自己有多牛逼!
展开
-
公司经验之----springboot项目集成elasticsearch7.6.1,索引操作,文档操作等
公司项目需求,跟着狂神学习了elasticsearch,这里我把学习成果分享一下spring-boot集成es 7.6.11,创建springboot项目,引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</art原创 2021-09-01 14:19:30 · 768 阅读 · 1 评论 -
SpringBoot 整合WebSocket 实现简单聊天室
项目结构:效果展示:实现步骤步骤一:添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <!-- json 返回数原创 2021-08-15 18:05:56 · 2358 阅读 · 8 评论 -
springboot 在线人数显示整理(HttpSessionListener,Redis,WebSocket)
这里我整理了几种方法:方法一:通过监听器HttpSessionListener步骤一:编写监听器//实现HttpSessionListener接口@WebListenerpublic class OnlineUserListener implements HttpSessionListener { public static List<String> list = new ArrayList<String>(); //监听session的创建,synchr原创 2021-08-13 15:46:21 · 1026 阅读 · 0 评论