资源简介
SpringBoot整合webSocket 里面包含一对一发送消息,一对多发送消息,群发消息。具体请看文章:https://blog.csdn.net/weixin_39984161/article/details/96969704

代码片段和文件信息
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License Version 2.0 (the
“License“); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing
software distributed under the License is distributed on an
“AS IS“ BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
“https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
Syst
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-07-22 16:26 websocket\
文件 333 2019-07-22 10:40 websocket\.gitignore
目录 0 2019-07-23 11:41 websocket\.idea\
文件 630 2019-07-22 10:41 websocket\.idea\compiler.xm
文件 172 2019-07-22 10:41 websocket\.idea\encodings.xm
目录 0 2019-07-22 10:47 websocket\.idea\libraries\
文件 592 2019-07-22 10:41 websocket\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 571 2019-07-22 10:41 websocket\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 546 2019-07-22 10:47 websocket\.idea\libraries\Maven__com_fasterxm
文件 668 2019-07-22 10:47 websocket\.idea\libraries\Maven__com_fasterxm
文件 619 2019-07-22 10:47 websocket\.idea\libraries\Maven__com_fasterxm
文件 647 2019-07-22 10:47 websocket\.idea\libraries\Maven__com_fasterxm
文件 698 2019-07-22 10:47 websocket\.idea\libraries\Maven__com_fasterxm
文件 712 2019-07-22 10:47 websocket\.idea\libraries\Maven__com_fasterxm
文件 753 2019-07-22 10:47 websocket\.idea\libraries\Maven__com_fasterxm
文件 635 2019-07-22 10:41 websocket\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
文件 635 2019-07-22 10:47 websocket\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xm
文件 597 2019-07-22 10:41 websocket\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_11_2.xm
文件 632 2019-07-22 10:41 websocket\.idea\libraries\Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xm
文件 649 2019-07-22 10:47 websocket\.idea\libraries\Maven__org_apache_tomcat_em
文件 635 2019-07-22 10:47 websocket\.idea\libraries\Maven__org_apache_tomcat_em
文件 684 2019-07-22 10:47 websocket\.idea\libraries\Maven__org_apache_tomcat_em
文件 613 2019-07-22 10:47 websocket\.idea\libraries\Maven__org_attoparser_attoparser_2_0_5_RELEASE.xm
文件 705 2019-07-22 10:47 websocket\.idea\libraries\Maven__org_hibernate_validator_hibernate_validator_6_0_17_Final.xm
文件 632 2019-07-22 10:47 websocket\.idea\libraries\Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xm
文件 558 2019-07-22 10:41 websocket\.idea\libraries\Maven__org_slf4j_jul_to_slf4j_1_7_26.xm
文件 537 2019-07-22 10:41 websocket\.idea\libraries\Maven__org_slf4j_slf4j_api_1_7_26.xm
文件 660 2019-07-22 10:41 websocket\.idea\libraries\Maven__org_springfr
文件 758 2019-07-22 10:41 websocket\.idea\libraries\Maven__org_springfr
文件 716 2019-07-22 10:41 websocket\.idea\libraries\Maven__org_springfr
文件 751 2019-07-22 10:47 websocket\.idea\libraries\Maven__org_springfr
............此处省略69个文件信息
相关资源
- websocket实现一对一聊天
- 易语言websocket服务器源码
- websocket规范 RFC6455 中文版
- websocket-rtsp-proxy-test.zip
- tomcat7.0.42 下部署websocket需要替换的包
- 物联网,WEBSOCKET丰富案例
- websocket简单web项目,直接部署可使用
- 高德地图+websocket
- libwebsockets-v1.6-stable.tar.gz
- weblogic websocket
- websocket
- 基于spring websocket实现广播及点对点推
- tomcat实现websocket聊天室
- 叫号语音平台源码
- springboot+websocket实现聊天室
- 用okhttp实现webSocket长连接
- node.js+socket.io+websocket使用demo
- websocket 1V1聊天室
- 简单的在线聊天室实现群聊和单聊,
- e语言-58自动回复招聘方源码 websocke
- libwebsockets-master
- Springboot多连接池+websocket
- SuperWebSocket使用
- libwebsockets-master.rar
- websocket实现单聊和群聊
- websocket服务端与客户端通信
- WEB在线聊天系统源码
- websocket向指定用户发信息
- Spring Boot整合websocket实现群聊,点对点
- 基于vs2010做的tcp通信调试工具源码
评论
共有 条评论