---
title: "一种JavaWeb项目开发部署方式"
author: "怡然城南"
date: "2012-11-16T09:37:33Z"
tags: ["Java", "Myeclipse", "Tomcat", "Web"]
categories: ["编程语言"]
slug: "javaweb"
draft: false
lastmod: "2012-11-16T09:36:42Z"
id: 1727613
url: "https://yrcn.iteye.com/blog/1727613"
---

以前在myeclipse开发Java Web项目的时候，部署项目是使用如下图方式： \[img]http://dl.iteye.com/upload/attachment/0076/6916/c38d505b-59bb-3352-abe9-29bc2f37fd39.png\[/img] 这种部署方式比较耗费时间，每次都需要把项目加载到tomcat下的webapps中； 最近接触了一种新的部署方式，开发部署更快，就是在tomcat的conf/server.xml添加如下配置：（放在Host节点中），这样每次项目自动编译后都会更改项目的WebRoot的内容，不需要每次都从新部署和加载。