1、找到tomcat配置文件conf/server.xml增加配置
<Service name="Catalina2">
<Connector port="8090" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
<Engine name="Catalina2" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps2"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="D:\devsoft\apache-tomcat-8.0.35\webapps2\xiaolumouth" reloadable="true" workDir="D:/temp/Tomcat/test" debug="0"/>
</Host>
</Engine>
</Service>
2、复制webapps、Catalina目录
把另外一个项目放在目录webapps2下.把docBase属性引向该目录