zoukankan      html  css  js  c++  java
  • tomcat部署jsp项目

    用eclipse开发运行调试jsp项目很方便,但是如何在不启动eclipse的情况下运行项目呢?


    ### 首先打开tomcat的`conf/server.xml`文件,找到`Host`标签,这里就是配置项目的地方。

    appBase是默认项目的路径

    <Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">
    
        <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -->
        <!--
            <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->
    
        <!-- Access log processes all example.Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
              prefix="localhost_access_log." suffix=".txt"
              pattern="%h %l %u %t &quot;%r&quot; %s %b" />
    
    </Host>
    

    ### 不需要对上面的配置进行修改,只需要在`Host`标签内加入`Context`标签即可,如:
    ``` ```
    其他的配置项还不明白什么意思,继续学习!
  • 相关阅读:
    CodeForces 650C Table Compression
    HDU 5632 Rikka with Array [想法题]
    HDU 4352 XHXJ's LIS
    HDU 5634 Rikka with Phi
    HDU 4763 Theme Section
    LightOJ 1342 Aladdin and the Magical Sticks [想法题]
    HDU 4578 Transformation
    POJ 1177 Picture
    HDU 4614 Vases and Flowers
    SPOJ AEROLITE
  • 原文地址:https://www.cnblogs.com/lantor/p/7782716.html
Copyright © 2011-2022 走看看