zoukankan      html  css  js  c++  java
  • Tomcat下设置项目为默认项目

    项目的实际使用中常常须要将当前项目设为tomcat的默认项目,而不是进入到tomcat的页面,有几种方法能够实现,注意另外一种、第三种情况须要先删除webapps下的ROOT文件夹,否则会失败。

    一、将自己的项目改名为ROOT注意项目名称要大写

    假设改完后没生效。建议清空tomcat中的work文件夹(缓存)

    二、改动配置文件server.xml

    添加<Context path="" docBase="Cluster" debug="0" reloadable="true"/>节点,当中docBase为webapps中的项目。注意,<Context>一定要加在<Host>节点中。样例例如以下:

    <Host name="localhost" appBase="webapps"
                unpackWARs="true" autoDeploy="true"
                xmlValidation="false" xmlNamespaceAware="false">
    		<Context path="" docBase="Cluster" debug="0" reloadable="true"/>

    三、改动配置文件server.xml

    添加<Context path="" docBase="E:appsCluster" debug="0" reloadable="true"/>节点,当中docBase为须要设为默认项目的绝对路径。注意,<Context>一定要加在<Host>节点中。样例例如以下:

    <Host name="localhost" appBase="webapps"
                unpackWARs="true" autoDeploy="true"
                xmlValidation="false" xmlNamespaceAware="false">
    		<Context path="" docBase="E:appsCluster" debug="0" reloadable="true"/>


  • 相关阅读:
    【IOS 开发】Object
    互联网开发-前沿与热门
    JS_call_APP native 与 html的交互
    扫描二维码区域限制
    二维码高亮
    charles抓包的使用教程
    Mac 在命令行中获得Root权限
    Mac下安装Wireshark,双击闪退
    iOS 解惑
    IOS_改变UITextField placeHolder颜色、字体
  • 原文地址:https://www.cnblogs.com/gccbuaa/p/7357026.html
Copyright © 2011-2022 走看看