有没有办法在tom 7和tom6中强制执行部署顺序?

编程入门 行业动态 更新时间:2024-10-10 02:15:11
本文介绍了有没有办法在tom 7和tom6中强制执行部署顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

例如,我要部署多个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.

  • coll.war
  • egg.war
  • 小鸡。战争
  • 有人可以帮助我做。

    推荐答案

    在服务器文件夹内的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中强制执行部署顺序?

    本文发布于:2023-11-12 02:20:26,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1580226.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:没有办法   强制执行   顺序   tom

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!