<Host appBase="webapps" name="localhost">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/>
</Host>
以上是tomcat5.5的server.xml里的配置文件,如果要改变根目录的
<Host appBase="webapps" name="localhost">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/>
<Context path="" docBase="F:/Java/DaoGou/MyDaoGou" debug="0" reloadable="true" crossContext="true" />
</Host>
***************************
很多方法都说改变appBase=""的路径,其实那样改不了的。