gpt4 book ai didi

tomcat - Web 应用程序的有序启动

转载 作者:行者123 更新时间:2023-11-28 21:56:37 25 4
gpt4 key购买 nike

我有两个在同一个 Tomcat 上运行的 Web 应用程序,但是一个应用程序依赖于另一个应用程序提供的服务。是否可以设置这些应用程序在 Tomcat 中的启动顺序?

最佳答案

来自Tomcat FAQ :

What order do webapps start (or how can I change startup order)?

There is no expected startup order. Neither the Servlet spec nor Tomcat define one. You can't rely on the apps starting in any particular order.

While the statement is certainly true, there is a potential "workaround", if you actually have two (or more) apps depending on each other, you may decide to start multiple services in you server.xml: [...]

关于tomcat - Web 应用程序的有序启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16770773/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com