资源简介
Spring Cloud Alibaba实战,使用Nacos作为配置中心, 介绍 https://blog.csdn.net/autfish/article/details/90173658
代码片段和文件信息
/*
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-05-13 17:34 payment-service\
文件 303 2019-05-09 17:17 payment-service\.gitignore
目录 0 2019-05-13 17:34 payment-service\.idea\
文件 642 2019-05-09 17:18 payment-service\.idea\compiler.xm
文件 172 2019-05-09 17:18 payment-service\.idea\encodings.xm
目录 0 2019-05-13 17:34 payment-service\.idea\libraries\
文件 568 2019-05-09 17:20 payment-service\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2019-05-09 17:20 payment-service\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 514 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_alibaba_fastjson_1_2_47.xm
文件 538 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_alibaba_nacos_nacos_api_1_0_0.xm
文件 559 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_alibaba_nacos_nacos_client_1_0_0.xm
文件 559 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_alibaba_nacos_nacos_common_1_0_0.xm
文件 522 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_fasterxm
文件 644 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_fasterxm
文件 595 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_fasterxm
文件 623 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_fasterxm
文件 674 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_fasterxm
文件 688 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_fasterxm
文件 729 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_fasterxm
文件 499 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_google_guava_guava_19_0.xm
文件 546 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 700 2019-05-09 17:20 payment-service\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 543 2019-05-09 17:20 payment-service\.idea\libraries\Maven__commons_codec_commons_codec_1_11.xm
文件 503 2019-05-09 17:20 payment-service\.idea\libraries\Maven__commons_io_commons_io_2_2.xm
文件 543 2019-05-09 17:20 payment-service\.idea\libraries\Maven__io_prometheus_simpleclient_0_5_0.xm
文件 611 2019-05-09 17:20 payment-service\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
文件 611 2019-05-09 17:20 payment-service\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xm
文件 455 2019-05-09 17:20 payment-service\.idea\libraries\Maven__junit_junit_4_12.xm
文件 536 2019-05-09 17:20 payment-service\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_9_12.xm
文件 578 2019-05-09 17:20 payment-service\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_9_12.xm
文件 542 2019-05-09 17:20 payment-service\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xm
............此处省略111个文件信息
相关资源
- SpringCloudAlibabaDemo02.zip
- SpringMVC最新最详细思维导图 (2).x
- Spring AOP 切面编程实战Demo项目
- spring-context-3.2.xsd
- guns 完整视频(未加密)
- 小程序+springboot开发
- cloudcompare汉化包
- keycloak应用于rest资源保护的springboot端
- SpringBoot整合Shiro,实现从数据库加载
-
最新版spring-fr
amework-4.3.9.RELEASE-sch - springboot集成hibernate
- zookeeper+dubbo+spring
- Spring Boot自定义错误页面
- 外文翻译Spring的MVC构架模式.2018_03_1
- guns 后台管理技术文档含收费部分
- SpringJDBC外文翻译
- springboot+mybatis+pagehelper、web前端到后台
- FastDFS与 spring 整合使用 Nginx 来显示图
- Spring Web Flow
- 尚硅谷springcloud课程源码,springcloud
- 华为HCNA-Cloud service题库
- 外文翻译_Spring在web中的应用
- Spring Boot多模块配置文件读取
- 韩顺平2017年Spring教学视频
- springboot使用rabbitmq工具类
- 小马哥微服务实践.txt
- SpringBootFile
- GetAlibaba_Setup.rar
- springboot+mybatis封装第二版
- maven+ssm+shiro
评论
共有 条评论