欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Tomcat 配置项目发布

程序员文章站 2022-03-01 17:41:02
...

<?xml version='1.0' encoding='gbk'?>
<!--
  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.
-->
 <!--reloadable="true" 改成"false" 就可以改代码不需重新启动 path="/"或者path="" 写上斜杠表述项目的根目录,不写上直接访问项目不须加上项目名-->


<!--下面的代码可以放到tomcat文件中的server.xml中也可以 
 <Context path="/" crossContext="true" docBase="E:\MyEclipse 8.5\SpringIOC\WebRoot"  reloadable="false">
<!--<Context path="/" crossContext="true" docBase="E:\hh\trunk\WebRoot"  reloadable="false">-->
  <!--<Context path="/" crossContext="true" docBase="E:\Java\gg\WebRoot"  reloadable="false">-->
 
</Context>

 

2.下面的附件解压直接放到C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf 配置文件夹中去即可