例如,我要部署多个war文件。 coll.war , egg.war 等,每个人都会指定一个应用程序模块。
I have multiple war files to deploy, for example. coll.war, egg.war, etc., each one will specify an application module.
在我们的应用程序中,我有一些规范, coll.war 应首先部署,而rest必须按特定顺序部署,如。
In our application I have some specification that coll.war should deploy first and rest has to deploy in specific sequence such like.
有人可以帮助我做。
推荐答案在服务器文件夹内的server.xml中,它会为你添加的每个战争添加一个条目。删除这些条目。
In server.xml inside servers folders it will add a entry for every war you added.Delete those entries.
然后创建xml文件其中包含以下内容,并在 conf\Catalina {server_name} 文件夹中按顺序命名xml文件。
Then create the xml files which have the following content and name the xml files in order inside the conf\Catalina{server_name} folder.
示例:
coll.xml
<?xml version='1.0' encoding='utf-8'?> <Context docBase="${catalina.home}/deploy/collWAR" crossContext="true"> </Context>更多推荐
有没有办法在tom 7和tom6中强制执行部署顺序?
发布评论