[Tomcat] WAR 파일 Deploy 




<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" />

    <!--<Context docBase="static" path="/static" reloadable="true"/>-->
    <Context docBase="test" path="/" reloadable="true"/>

</Host>


tomcat이 설치된 디렉토리 안 /conf 에 server.xml 파일에


unpackWARs="true" autoDeploy="true" 


확인


<Context docBase="WAR파일명" path="CONTEXTPATH경로" reloadble="true" />


설정 한다.


tomcat/webapps/WAR파일명과동일한 폴더/


생성 후 WAR파일을 넣고,


tomcat stop, start 하면 된다

+ Recent posts