欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

tomcat 修改默认路径

程序员文章站 2022-05-26 14:18:25
...

 

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>

 

相关标签: JAVA开发