打开Tomcat\conf\server.xml文件,在<host>加入下面的Context:
<Context path="/myapp" docBase="D:\myapp" debug="0" reloadable="true" crossContext="true" />