`

Tomcat 配置项目发布

 
阅读更多

<?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 配置文件夹中去即可

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics