tomcatはデフォルトパスを変更します

 

server.xml

 

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
		
		<!--add by zhaogang-->
		<Context path="" docBase="D:\books\db\oracle12cR1" debug="0" reloadable="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>

 

おすすめ

転載: blog.csdn.net/zhaogang1993/article/details/107196453