springboot+websocket实现聊天室

上传者: ajax_yan | 上传时间: 2019-12-21 19:23:46 | 文件大小: 1.37MB | 文件类型: rar
我是基于springboot+websocket,首先,简历websocket服务端,然后在页面进行调用,通过传参告诉服务端你要在哪个聊天室聊天,等等  ,具体的 看我的实现代码。这还是最基础的,中间可以加一些消息件

文件下载

资源详情

[{"title":"( 96 个子文件 1.37MB ) springboot+websocket实现聊天室","children":[{"title":"SpringBoot_Websocket_Chat-master","children":[{"title":"SpringBoot_Websocket_Chat-master","children":[{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 179B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 323B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 15.10KB </span>","children":null,"spread":false},{"title":"SpringBoot_Websocket_Chat-master.iml <span style='color:#111;'> 344B </span>","children":null,"spread":false}],"spread":true},{"title":"SpringBoot_Websocket_Chat-master","children":[{"title":"pom.xml <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"chat.iml <span style='color:#111;'> 7.16KB </span>","children":null,"spread":false},{"title":"target","children":[{"title":"test-classes","children":[{"title":"com","children":[{"title":"ldlood","children":[{"title":"ChatApplicationTests.class <span style='color:#111;'> 919B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"generated-test-sources","children":[{"title":"test-annotations","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"application.yml <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"templates","children":[{"title":"chat.ftl <span style='color:#111;'> 5.58KB </span>","children":null,"spread":false},{"title":"list.ftl <span style='color:#111;'> 557B </span>","children":null,"spread":false}],"spread":true},{"title":"com","children":[{"title":"ldlood","children":[{"title":"config","children":[{"title":"WebSocketConfig.class <span style='color:#111;'> 696B </span>","children":null,"spread":false}],"spread":false},{"title":"Service","children":[{"title":"WebSocket.class <span style='color:#111;'> 4.60KB </span>","children":null,"spread":false}],"spread":false},{"title":"ChatApplication.class <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"VO","children":[{"title":"NameVO.class <span style='color:#111;'> 811B </span>","children":null,"spread":false},{"title":"MessageVO.class <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"TestController.class <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"static","children":[{"title":"image","children":[{"title":"chat.gif <span style='color:#111;'> 1.30MB </span>","children":null,"spread":false}],"spread":false},{"title":"jquery-1.4.2.min.js <span style='color:#111;'> 70.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"commandpage.ftl <span style='color:#111;'> 12.81KB </span>","children":null,"spread":false},{"title":"logback-spring.xml <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":true},{"title":"generated-sources","children":[{"title":"annotations","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"ldlood","children":[{"title":"ChatApplicationTests.java <span style='color:#111;'> 429B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"templates","children":[{"title":"chat.ftl <span style='color:#111;'> 5.58KB </span>","children":null,"spread":false},{"title":"list.ftl <span style='color:#111;'> 557B </span>","children":null,"spread":false}],"spread":true},{"title":"static","children":[{"title":"image","children":[{"title":"chat.gif <span style='color:#111;'> 1.30MB </span>","children":null,"spread":false}],"spread":false},{"title":"jquery-1.4.2.min.js <span style='color:#111;'> 70.48KB </span>","children":null,"spread":false}],"spread":false},{"title":"commandpage.ftl <span style='color:#111;'> 12.81KB </span>","children":null,"spread":false},{"title":"logback-spring.xml <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"ldlood","children":[{"title":"ChatApplication.java <span style='color:#111;'> 299B </span>","children":null,"spread":false},{"title":"config","children":[{"title":"WebSocketConfig.java <span style='color:#111;'> 426B </span>","children":null,"spread":false}],"spread":false},{"title":"Service","children":[{"title":"WebSocket.java <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false}],"spread":false},{"title":"VO","children":[{"title":"NameVO.java <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"MessageVO.java <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"TestController.java <span style='color:#111;'> 999B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 455B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 4B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 255B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 177B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 635B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 30.92KB </span>","children":null,"spread":false},{"title":"libraries","children":[{"title":"Maven__org_springframework_spring_context_4_3_10_RELEASE.xml <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_webmvc_4_3_10_RELEASE.xml <span style='color:#111;'> 637B </span>","children":null,"spread":false},{"title":"Maven__org_yaml_snakeyaml_1_17.xml <span style='color:#111;'> 495B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_web_4_3_10_RELEASE.xml <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"Maven__org_freemarker_freemarker_2_3_26_incubating.xml <span style='color:#111;'> 617B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_test_1_5_6_RELEASE.xml <span style='color:#111;'> 671B </span>","children":null,"spread":false},{"title":"Maven__junit_junit_4_12.xml <span style='color:#111;'> 455B </span>","children":null,"spread":false},{"title":"Maven__org_projectlombok_lombok_1_16_18.xml <span style='color:#111;'> 531B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_jcl_over_slf4j_1_7_25.xml <span style='color:#111;'> 548B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_test_autoconfigure_1_5_6_RELEASE.xml <span style='color:#111;'> 769B </span>","children":null,"spread":false},{"title":"Maven__org_hamcrest_hamcrest_library_1_3.xml <span style='color:#111;'> 553B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_freemarker_1_5_6_RELEASE.xml <span style='color:#111;'> 769B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_messaging_4_3_10_RELEASE.xml <span style='color:#111;'> 658B </span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_16.xml <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_test_4_3_10_RELEASE.xml <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_aop_4_3_10_RELEASE.xml <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"Maven__ch_qos_logback_logback_classic_1_1_11.xml <span style='color:#111;'> 575B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_context_support_4_3_10_RELEASE.xml <span style='color:#111;'> 700B </span>","children":null,"spread":false},{"title":"Maven__org_jboss_logging_jboss_logging_3_3_1_Final.xml <span style='color:#111;'> 608B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_slf4j_api_1_7_25.xml <span style='color:#111;'> 513B </span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_core_jackson_databind_2_8_9.xml <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"Maven__org_hamcrest_hamcrest_core_1_3.xml <span style='color:#111;'> 532B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_log4j_over_slf4j_1_7_25.xml <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_websocket_4_3_10_RELEASE.xml <span style='color:#111;'> 658B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_jul_to_slf4j_1_7_25.xml <span style='color:#111;'> 534B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_websocket_1_5_6_RELEASE.xml <span style='color:#111;'> 762B </span>","children":null,"spread":false},{"title":"Maven__org_ow2_asm_asm_5_0_3.xml <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_core_jackson_core_2_8_9.xml <span style='color:#111;'> 595B </span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_16.xml <span style='color:#111;'> 660B </span>","children":null,"spread":false},{"title":"Maven__org_assertj_assertj_core_2_6_0.xml <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_expression_4_3_10_RELEASE.xml <span style='color:#111;'> 665B </span>","children":null,"spread":false},{"title":"Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml <span style='color:#111;'> 700B </span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_16.xml <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_web_1_5_6_RELEASE.xml <span style='color:#111;'> 720B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_logging_1_5_6_RELEASE.xml <span style='color:#111;'> 748B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_1_5_6_RELEASE.xml <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_autoconfigure_1_5_6_RELEASE.xml <span style='color:#111;'> 734B </span>","children":null,"spread":false},{"title":"Maven__net_minidev_json_smart_2_2_1.xml <span style='color:#111;'> 521B </span>","children":null,"spread":false},{"title":"Maven__org_mockito_mockito_core_1_10_19.xml <span style='color:#111;'> 549B </span>","children":null,"spread":false},{"title":"Maven__net_minidev_accessors_smart_1_1.xml <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"Maven__org_hibernate_hibernate_validator_5_3_5_Final.xml <span style='color:#111;'> 634B </span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_classmate_1_3_3.xml <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_1_5_6_RELEASE.xml <span style='color:#111;'> 636B </span>","children":null,"spread":false},{"title":"Maven__ch_qos_logback_logback_core_1_1_11.xml <span style='color:#111;'> 554B </span>","children":null,"spread":false},{"title":"Maven__org_objenesis_objenesis_2_1.xml <span style='color:#111;'> 508B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_test_1_5_6_RELEASE.xml <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_core_4_3_10_RELEASE.xml <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"Maven__com_jayway_jsonpath_json_path_2_2_0.xml <span style='color:#111;'> 546B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_beans_4_3_10_RELEASE.xml <span style='color:#111;'> 630B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_tomcat_1_5_6_RELEASE.xml <span style='color:#111;'> 741B </span>","children":null,"spread":false},{"title":"Maven__org_skyscreamer_jsonassert_1_4_0.xml <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"Maven__javax_validation_validation_api_1_1_0_Final.xml <span style='color:#111;'> 611B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 757B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 188B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明