-
大小: 93KB文件类型: .rar金币: 1下载: 0 次发布日期: 2021-05-18
- 语言: 其他
- 标签: springboot webscoket
资源简介
springboot webscoket 实现群聊,点对点聊天 Demo, 实现对应博客测试demo,
https://blog.csdn.net/qq_38455201/article/details/80374712
代码片段和文件信息
/*
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
http://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) {
System
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 277 2019-03-03 22:57 webscoketdemo\.gitignore
文件 638 2019-03-03 23:03 webscoketdemo\.idea\compiler.xm
文件 272 2019-03-03 23:39 webscoketdemo\.idea\encodings.xm
文件 568 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 503 2019-03-03 23:09 webscoketdemo\.idea\libraries\Maven__commons_io_commons_io_2_3.xm
文件 514 2019-03-03 23:09 webscoketdemo\.idea\libraries\Maven__com_alibaba_fastjson_1_2_12.xm
文件 522 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__com_fasterxm
文件 644 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__com_fasterxm
文件 595 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__com_fasterxm
文件 623 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__com_fasterxm
文件 674 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__com_fasterxm
文件 688 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__com_fasterxm
文件 729 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__com_fasterxm
文件 546 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 700 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 611 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
文件 611 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xm
文件 455 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__junit_junit_4_12.xm
文件 536 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_9_10.xm
文件 578 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_9_10.xm
文件 542 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xm
文件 507 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__net_minidev_json_smart_2_3.xm
文件 573 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_11_2.xm
文件 608 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xm
文件 625 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__org_apache_tomcat_em
文件 611 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__org_apache_tomcat_em
文件 660 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__org_apache_tomcat_em
文件 542 2019-03-03 23:03 webscoketdemo\.idea\libraries\Maven__org_assertj_assertj_core_3_11_1.xm
文件 589 2019-03-03 23:22 webscoketdemo\.idea\libraries\Maven__org_attoparser_attoparser_2_0_5_RELEASE.xm
............此处省略103个文件信息
- 上一篇:自己用的很8错的捆绑器--饭客网络捆绑器
- 下一篇:PCF8591中文资料
相关资源
- springboot+ElasticSearch搜索引擎
- springboot集成jwt和shiro实现前后端分离
- springboot经典项目
- springboot+beetl+i18n.zip
- SpringBoot+ActiveMq+MQTT实现消息的发送和
- 微服务springboot.txt
-
gba
se8tinformix+mybatis+maven+springboot 整合 - springboot + mybaties + phoenix + HikariCP 整合
- 某学院spring-boot全套教程+项目源码
- springboot+spring data jpa+thymeleaf学习web项
- springboot实现验证码校验demo
- SpringBoot如何在运行时动态添加数据源
- SpringBoot-从零开发校园商铺平台带源码
- 深入理解Spring Cloud与微服务构建 方志
- SpringBoot企业微信点餐系统.txt
- SpringBoot(1).txt
- springboot 整合Activiti工作流 集成 Diag
- 某网ssm到SpringBoot从零开发校园商铺平
- SpringBoot项目源码
- 完成了Crm系统 用户管理,增删改查。
- Springboot+websocket 实现多人聊天室/单人
- springboot.zip
- springboot+axis1.4
- springboot demo基本的增删改查
- springboot-dubbo登陆demo
- SpringBoot的简单登陆开发
- SpringBoot+Mybatis整合完整源码
- springboot+shiro代码demo
- Springboot+freemarker生成word
- IDEA springboot+mybatis 贷款业务系统功能
评论
共有 条评论