通过配置xml文件,做到开发过程中tomcat 免部署
来源:互联网 发布:刀王娄四东淘宝 编辑:程序博客网 时间:2024/06/06 06:59
该方法是我在开发过程中,项目经理教的,就是解决在很大的项目(几百兆)中,重新部署花了很长时间的问题,希望能帮到为生活奔波的苦逼程序猿。
步骤方案:
1.在tomcat 的安装目录下:(我是免安装版的)D:\Program Files (x86)\Apache Software Foundation\apache-tomcat-6.0.29\conf\Catalina\localhost(如果没有自建),建一个与工程名一样的xml文件(注意文件名要与工程名一样)。
2.文件内容是:
<?xml version="1.0" encoding="UTF-8"?>
<!--
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.
-->
<Context path="/fjadmp" docBase="F:/workspace/fjadmp/WebRoot" debug="0" privileged="true">
</Context>
(注释:Context path是工程名,doBase是工程在本地硬盘的路径,到webroot 为止,其他照抄)
3.在myeclipse 中只要直接启动tomcat,不要部署(重点:千万不要部署)。
(注意:该方法主要用于开发,故一个xml文件对应一个工程,如果换工程,只要加人另一个xml文件,修改原先xml文件的扩展名,如XXX.xmlbak)
- 通过配置xml文件,做到开发过程中tomcat 免部署
- 通过配置tomcat实现项目免部署
- 通过配置tomcat实现项目免部署
- tomcat通过配置链接文件部署程序
- tomcat 中server.xml文件配置
- tomcat中tomcat-user.xml文件的配置
- Tomcat开发无部署配置
- Tomcat部署项目之通过server.xml部署项目
- 在tomcat的server.xml中配置数据库连接池和手动部署到tomcat
- Tomcat配置虚拟目录(使用XML部署项目)
- tomcat https 部署 server.xml配置
- tomcat 部署,配置 servlet 过程全记录。
- tomcat 部署,配置 servlet 过程全记录。
- maven tomcat插件热部署配置过程
- tomcat 部署,配置 servlet 过程全记录。
- maven tomcat插件热部署配置过程
- 通过xml文件配置 spring自动装配5中模式
- tomcat中部署静态文件
- Red Hat Enterprise Linux 6下安装Weblogic 12c
- Effective C++ 读书笔记 条款05:了解C++默默编写并调用哪些函数
- Python学习旅程笔记1
- 在android中如何编译连接 .c 的可执行文件
- VirtualBox中的快捷键
- 通过配置xml文件,做到开发过程中tomcat 免部署
- 解决不能访问google
- C# 最长公共子序列
- python操作子进程,调用其他程序
- SQL中decode()函数的使用
- @Override标签和Ecilipse中使用
- Linux启动代码
- Android开发者必知的开发资源
- Size Classes with Xcode 6