标题:JAVA的项目部署问题,求指导
取消只看楼主
leonardo38
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2009-1-1
结帖率:20%
 问题点数:0 回复次数:0 
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个,那么访问的地址该怎么改?
搜索更多相关主题的帖子: javascript protocol 配置文件 false JAVA 
2014-12-22 09:59



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-440223-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014808 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved