debug配置
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
以上是在tomcat里配置文件中添加,还可以通过IDE指定服务器的debug模式
tomact7虚拟主机配置
<Host name="expoweb.davidxiaozhi.com" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false" urlEncoding="utf-8">
<Context path="" docBase="E:\work\work4\expoweb\WebRoot\" reloadable="true" crossContext="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="expoweb.lizhipeng.com_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" resolveHosts="false"/>
</Context>
</Host>