JAVA的项目部署问题,求指导
现在有个项目,需要用同一个tomcat发布,要想访问地址互不相关,怎么设置?我的tomcat的配置文件server.xml如下<Service name="Catalina1">
<!--UMALLConsole2 -->
<Connector port="8082" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8413" URIEncoding="UTF-8" maxHttpHeaderSize="8192" maxThreads="1000"
enableLookups="false" compression="on" compressionMinSize="2048" compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"
disableUploadTimeout="true" useBodyEncodingForURI="true" />
<Engine name="Catalina1" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
<Host name="localhost" appBase="C:\Pro** Files\Apache Software Foundation\Tomcat 7.0" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="webapps\UMALLConsole" reloadable="false" />
</Host>
</Engine>
</Service>
是不是只用修改下Service 的name属性改成Catalina2和Host 的docBase的路径改成webapps\UMALLConsoleTEST,就行了?如果只用改这2个,那么访问的地址该怎么改?