在tomcat\conf\server.xml中增加:
<Context path="/test" docBase="C:\Inetpub\wwwroot" debug="0" reloadable="true" > 
</Context>
重启tomcat.