资源简介
天理J2EE实验报告1-3,本来是不打算传的,因为看看部分自己之前写的代码确实太烂了,但是想想之前自己搜不到报告的尴尬还是传一下吧,毕竟烂点也比没有好不是。
Attention:仅供参考,毕竟你找董老师问问之后就能很随便的写出来了
Attention:仅供参考,毕竟你找董老师问问之后就能很随便的写出来了
代码片段和文件信息
/*
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1195 2019-05-24 10:14 J2ee\demo-spring-boot-1\.classpath
文件 303 2019-05-17 16:43 J2ee\demo-spring-boot-1\.gitignore
文件 48337 2019-05-17 16:43 J2ee\demo-spring-boot-1\.mvn\wrapper\maven-wrapper.jar
文件 116 2019-05-17 16:43 J2ee\demo-spring-boot-1\.mvn\wrapper\maven-wrapper.properties
文件 4625 2019-05-17 16:43 J2ee\demo-spring-boot-1\.mvn\wrapper\MavenWrapperDownloader.java
文件 1407 2019-05-17 16:43 J2ee\demo-spring-boot-1\.project
文件 560 2019-05-17 16:43 J2ee\demo-spring-boot-1\.settings\.jsdtscope
文件 150 2019-05-17 16:43 J2ee\demo-spring-boot-1\.settings\org.eclipse.core.resources.prefs
文件 422 2019-05-17 16:43 J2ee\demo-spring-boot-1\.settings\org.eclipse.jdt.core.prefs
文件 86 2019-05-22 09:55 J2ee\demo-spring-boot-1\.settings\org.eclipse.m2e.core.prefs
文件 699 2019-05-17 16:43 J2ee\demo-spring-boot-1\.settings\org.eclipse.wst.common.component
文件 252 2019-05-17 16:43 J2ee\demo-spring-boot-1\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2019-05-17 16:43 J2ee\demo-spring-boot-1\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2019-05-17 16:43 J2ee\demo-spring-boot-1\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 48 2019-05-17 16:43 J2ee\demo-spring-boot-1\.settings\org.eclipse.wst.validation.prefs
文件 640 2019-05-17 16:43 J2ee\demo-spring-boot-1\HELP.md
文件 9114 2019-05-17 16:43 J2ee\demo-spring-boot-1\mvnw
文件 5811 2019-05-17 16:43 J2ee\demo-spring-boot-1\mvnw.cmd
文件 2693 2019-05-24 14:11 J2ee\demo-spring-boot-1\pom.xm
文件 1582 2019-05-18 21:24 J2ee\demo-spring-boot-1\src\main\java\edu\tjut\DBStudentController.java
文件 1312 2019-05-24 10:59 J2ee\demo-spring-boot-1\src\main\java\edu\tjut\DBStudentController2.java
文件 2176 2019-05-24 11:27 J2ee\demo-spring-boot-1\src\main\java\edu\tjut\DBStudentController3.java
文件 404 2019-05-24 11:12 J2ee\demo-spring-boot-1\src\main\java\edu\tjut\DemoSpringBoot1Application.java
文件 1000 2019-05-18 21:23 J2ee\demo-spring-boot-1\src\main\java\edu\tjut\Student.java
文件 1803 2019-05-24 11:03 J2ee\demo-spring-boot-1\src\main\java\edu\tjut\StudentController.java
文件 807 2019-05-24 11:00 J2ee\demo-spring-boot-1\src\main\java\edu\tjut\StudentService.java
文件 993 2019-05-24 11:11 J2ee\demo-spring-boot-1\src\main\java\edu\tjut\SwaggerConfig.java
文件 703 2019-05-24 14:50 J2ee\demo-spring-boot-1\src\main\resources\application.properties
文件 797 2019-05-24 11:02 J2ee\demo-spring-boot-1\src\main\resources\import.sql
文件 2243 2019-05-24 11:51 J2ee\demo-spring-boot-1\src\main\resources\my-key.ks
............此处省略710个文件信息
评论
共有 条评论