-
大小: 15.7MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-06-14
- 语言: 其他
- 标签: 狂神说 SpringBoot java
资源简介
Bilibili狂神老师的springBoot全代码及笔记,讲的非常的好,希望大家结合视频学习狂神老师的springBoot编程,精进自己的技术。
代码片段和文件信息
/*
* Copyright 2012-2019 the original author or authors.
*
* Licensed 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.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = “0.5.5“;
/**
* 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/“
+ WRAPPER_VERSION + “/maven-wrapper-“ + WRAPPER_VERSION + “.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.out.println(“- ERROR loading ‘“ + MAVEN_WRAPPER_PROPERTIES_PATH + “‘“);
} finally {
try {
if(mavenWrapperPropertyFileInputStream != null) {
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-01-09 10:48 SpringBoot-Study--master\
文件 20 2020-01-09 10:48 SpringBoot-Study--master\README.md
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\.mvn\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\.mvn\wrapper\
文件 4939 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\.mvn\wrapper\MavenWrapperDownloader.java
文件 50710 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\.mvn\wrapper\maven-wrapper.jar
文件 218 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\.mvn\wrapper\maven-wrapper.properties
文件 1404 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\pom.xm
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\java\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\java\com\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\java\com\rui\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\java\com\rui\helloworld\
文件 361 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\java\com\rui\helloworld\HelloworldApplication.java
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\java\com\rui\helloworld\controller\
文件 428 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\java\com\rui\helloworld\controller\HelloController.java
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\resources\
文件 31 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\main\resources\application.properties
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\test\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\test\java\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\test\java\com\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\test\java\com\rui\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\test\java\com\rui\helloworld\
文件 229 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\src\test\java\com\rui\helloworld\HelloworldApplicationTests.java
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\target\
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\target\classes\
文件 31 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\target\classes\application.properties
目录 0 2020-01-09 10:48 SpringBoot-Study--master\springboot\helloworld\target\classes\com\
............此处省略414个文件信息
- 上一篇:哈工大王义和近世代数全套资源
- 下一篇:QI标准V1.2.4.rar
相关资源
- 学生管理系统springMVC+MyBatis
- 基于SSMSpring-SpringMVC-MyBatis的高级整合
- 基于SSM企业固定资产管理系统.zip
- SSM框架开发的 驾校信息管理系统
- 物流管理系统全套开发
- springboot整合fastdfs完整版代码
- meven+ssm+shiro实现前后端分离登录小案
- 物联网环境监测数据中心-物联网项目
- 基于springboot2.x的Oauth2.0一键授权登录
- 完整MyCalendarDemo-master.zip
- 基于ssm的小米商城
- jdk-8u241-windows-x64 .zip
- eclipse Kepler SR2 for Linux 64位 安装包 g
- jdk-13_windows-x64_bin.exe
- 图解设计模式高清PDF带目录和源码
- SpringBoot深入实践pdf及源码
- jdk-8u231-macosx-x64.dmg JDK8最新官方SDK
- uimaker多套配色版EasyUI后台管理模板多
- Vert.x的Http和TCP实战
- 基于SpringBoot的停车场管理系统.zip
- jdk1.8中英文文档chm
- 网络购物订单管理系统-课程设计源码
- jdk-7u60-linux-x64.tar.gz
- MAT 堆内存分析工具
- 基于TCP的Socket编程服务器和客户端代
- 校园停车项目
- 2019最新版eclipse.rar
-
spring-fr
amework-4.1.7.RELEASE - springboot2.zip
- ssm模糊查询demo
评论
共有 条评论