资源简介
Spring Boot集成Swagger2及项目示例
代码片段和文件信息
/*
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 2020-07-13 10:26 swagger前后端分离开发\
目录 0 2020-07-10 09:17 swagger前后端分离开发\swagger\
文件 333 2019-08-11 19:11 swagger前后端分离开发\swagger\.gitignore
目录 0 2020-07-10 19:16 swagger前后端分离开发\swagger\.idea\
文件 184 2020-07-10 09:06 swagger前后端分离开发\swagger\.idea\.gitignore
文件 812 2019-08-11 19:16 swagger前后端分离开发\swagger\.idea\compiler.xm
文件 248 2020-07-10 09:17 swagger前后端分离开发\swagger\.idea\encodings.xm
文件 864 2020-07-10 09:17 swagger前后端分离开发\swagger\.idea\jarRepositories.xm
目录 0 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\
文件 568 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 522 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_fasterxm
文件 644 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_fasterxm
文件 595 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_fasterxm
文件 623 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_fasterxm
文件 674 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_fasterxm
文件 688 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_fasterxm
文件 729 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_fasterxm
文件 499 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_google_guava_guava_18_0.xm
文件 546 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 700 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 553 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__io_springfox_springfox_core_2_7_0.xm
文件 567 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__io_springfox_springfox_schema_2_7_0.xm
文件 546 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__io_springfox_springfox_spi_2_7_0.xm
文件 595 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__io_springfox_springfox_spring_web_2_7_0.xm
文件 581 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__io_springfox_springfox_swagger2_2_7_0.xm
文件 623 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__io_springfox_springfox_swagger_common_2_7_0.xm
文件 595 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__io_springfox_springfox_swagger_ui_2_7_0.xm
文件 587 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__io_swagger_swagger_annotations_1_5_13.xm
文件 552 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__io_swagger_swagger_models_1_5_13.xm
文件 611 2020-07-10 09:18 swagger前后端分离开发\swagger\.idea\libraries\Maven__javax_activation_javax_activation_api_1_2_0.xm
............此处省略117个文件信息
相关资源
- 2018最新git视频教程
- offer来了-原理篇极力推荐
- AMap.Geocoder高德地图逆向地理编码JS代
-
毕设外文文献Spring fr
amework Fundamen - 基于JXTA的P2P即时通信系统设计
- 基于 springboot2.0 实现的人脸识别登陆
- struts2+hibernate做的上传和文件
- 尚硅谷SpringBoot核心技术篇视频教程,
- 动力节点springboot视频教程,百度网盘
- 设计模式完整视频
- 美味咖啡系统
- 简单struts2项目(人事管理)
- PowerMock实战手册.pdf
- 银行储蓄系统设计报告
- eclipse的动画实现
- ATM柜员机模拟程序毕业设计
- 数据结构课程设计学生信息管理系统
- 网吧管理系统带源代码
- 最新计算机系毕业设计选题大全.doc
- PTV热力学计算助手
- springcloud+skywalkingdemo.zip
- 本人做的一个网站,是一个学生会的
- springboot与netty整合
- GP学习总结
- 详细设计模板
- 计算机毕业设计源码与全部论文
- 纯JS实现前端购物车案例.rar
- 三国杀武将张昌蒲技能计算器
- Head First 系列丛书网盘资源
- 企业人事管理系统开题报告
评论
共有 条评论