资源简介
前端签到与后台逻辑代码实现(springboot+java+mysql+maven)
代码片段和文件信息
/*
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) {
Syste
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-07-16 15:56 vg\
文件 1226 2019-07-16 15:56 vg\.classpath
文件 333 2019-07-16 07:50 vg\.gitignore
目录 0 2019-07-16 07:50 vg\.mvn\
目录 0 2019-07-16 07:50 vg\.mvn\wrapper\
文件 48337 2019-07-16 07:50 vg\.mvn\wrapper\maven-wrapper.jar
文件 116 2019-07-16 07:50 vg\.mvn\wrapper\maven-wrapper.properties
文件 4625 2019-07-16 07:50 vg\.mvn\wrapper\MavenWrapperDownloader.java
文件 554 2019-07-16 15:56 vg\.project
目录 0 2019-07-16 15:56 vg\.settings\
文件 214 2019-07-16 15:56 vg\.settings\org.eclipse.core.resources.prefs
文件 243 2019-07-16 15:56 vg\.settings\org.eclipse.jdt.core.prefs
文件 90 2019-07-16 15:50 vg\.settings\org.eclipse.m2e.core.prefs
文件 196 2019-07-16 07:50 vg\HELP.md
文件 9114 2019-07-16 07:50 vg\mvnw
文件 5811 2019-07-16 07:50 vg\mvnw.cmd
文件 2570 2019-07-17 08:34 vg\pom.xm
目录 0 2019-07-16 07:50 vg\src\
目录 0 2019-07-16 16:22 vg\src\main\
目录 0 2019-07-16 07:50 vg\src\main\java\
目录 0 2019-07-17 08:38 vg\src\main\java\com\
目录 0 2019-07-16 07:50 vg\src\main\java\com\yu\
目录 0 2019-07-17 08:36 vg\src\main\java\com\yu\vg\
目录 0 2019-07-16 15:58 vg\src\main\java\com\yu\vg\controller\
文件 2137 2019-07-17 08:43 vg\src\main\java\com\yu\vg\controller\SignController.java
目录 0 2019-07-16 16:57 vg\src\main\java\com\yu\vg\model\
文件 365 2019-07-16 17:02 vg\src\main\java\com\yu\vg\model\Sign.java
目录 0 2019-07-17 08:37 vg\src\main\java\com\yu\vg\utils\
文件 3739 2019-07-17 08:38 vg\src\main\java\com\yu\vg\utils\R.java
文件 2147 2019-07-17 08:37 vg\src\main\java\com\yu\vg\utils\ReturnMsgUtil.java
文件 294 2019-07-16 07:50 vg\src\main\java\com\yu\vg\VgApplication.java
............此处省略153个文件信息
- 上一篇:SoCallSo.7z
- 下一篇:用java写的一个图书管理系统
评论
共有 条评论