资源简介
Tomcat 部署 war 源文件 springmvc_war.zip
https://blog.csdn.net/jx520/article/details/87276010
![](http://www.nz998.com/pic/39674.jpg)
代码片段和文件信息
/*
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
http://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) {
System
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-02-14 16:45 springmvc_war\
文件 1308 2019-02-14 16:47 springmvc_war\.classpath
文件 269 2019-02-14 02:05 springmvc_war\.gitignore
目录 0 2019-02-14 10:05 springmvc_war\.mvn\
目录 0 2019-02-14 10:05 springmvc_war\.mvn\wrapper\
文件 48337 2019-02-14 02:05 springmvc_war\.mvn\wrapper\maven-wrapper.jar
文件 116 2019-02-14 02:05 springmvc_war\.mvn\wrapper\maven-wrapper.properties
文件 4624 2019-02-14 02:05 springmvc_war\.mvn\wrapper\MavenWrapperDownloader.java
文件 1083 2019-02-14 16:42 springmvc_war\.project
目录 0 2019-02-14 16:42 springmvc_war\.settings\
文件 639 2019-02-14 10:07 springmvc_war\.settings\.jsdtscope
文件 155 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.core.resources.prefs
文件 430 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.jdt.core.prefs
文件 90 2019-02-14 16:42 springmvc_war\.settings\org.eclipse.m2e.core.prefs
文件 669 2019-02-14 16:42 springmvc_war\.settings\org.eclipse.wst.common.component
文件 252 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 50 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.wst.validation.prefs
文件 9113 2019-02-14 02:05 springmvc_war\mvnw
文件 5810 2019-02-14 02:05 springmvc_war\mvnw.cmd
文件 2174 2019-02-14 10:14 springmvc_war\pom.xm
目录 0 2019-02-14 10:05 springmvc_war\src\
目录 0 2019-02-14 10:07 springmvc_war\src\main\
目录 0 2019-02-14 10:21 springmvc_war\src\main\java\
目录 0 2019-02-14 10:05 springmvc_war\src\main\java\com\
目录 0 2019-02-14 10:21 springmvc_war\src\main\java\com\jerry\
目录 0 2019-02-14 10:21 springmvc_war\src\main\java\com\jerry\mvc\
目录 0 2019-02-14 10:21 springmvc_war\src\main\java\com\jerry\mvc\controller\
文件 398 2019-02-14 15:38 springmvc_war\src\main\java\com\jerry\mvc\controller\WelcomeController.java
文件 301 2019-02-14 02:05 springmvc_war\src\main\java\com\jerry\mvc\MvcApplication.java
............此处省略44个文件信息
相关资源
- Tomcat中配置数据源所需得jar包
- Tomcat6.x
- Tomcat7.0.52绿色版
- 虚拟机配置+群集配置+tomcat服务器实现
- 自动清除tomcat缓存及日志
- 度假村管理系统
- 基于MVC的网上书城系统
- tomcat控制台详细错误日志设置
- apache-tomcat-7.0.79.zip
- 牛族Tomcat-auot-最新v1.2版
- SSH功能完善的通讯录
- tomcat6.0 64位
- how tomcat works 高清中文版,英文版和随
- tomcat7.0.42 下部署websocket需要替换的包
- tomcat7.063稳定版
- apache-tomcat-6.0.47.tar.gz
- apache-tomcat-7.0.63-windows-x64
- apache-tomcat-9.0.0.M26.tar
- tomcat-8.0.47
- linux tomcat 32位
- tomcat-6.0.26.tar.gz
- apache-tomact-8.0.20(32位和64位)
- 分布式集群Session共享 简单多tomcat8+
- apache-tomcat-8.5.8.tar.gz
- tomcat6.0.20免安装版
- tomcat 6.020解压版
- apache-tomcat-6.0.41
- apache-tomcat-7.0.79.tar.gz
- tomcat官方8.0.53版Windows-64位
- apache-tomcat-8.5.23-windows-x64.zip
评论
共有 条评论