Tomcat 管理器中的 Web 应用程序版本 [英] Web app version in Tomcat Manager
问题描述
如何配置我的 Web 应用程序以在 Tomcat 中部署,以便 Tomcat 管理器在列出所有已安装应用程序的表 (/manager/html/list) 中显示版本?
How can I configure my web application for deployment in Tomcat so that Tomcat Manager shows the version in the table that lists all applications installed (/manager/html/list)?
目前它为所有应用程序显示未指定",包括它自己.我使用的是 Tomcat 7.0.11.
Currently it shows "None Specified" for all apps, including itself. I am using Tomcat 7.0.11.
推荐答案
版本是通过管理器部署应用时指定的版本.
The version is the one specified when deploying the application through the manager.
请参阅文档:
tag:指定标签名称,这允许将部署的 web 应用程序与版本号相关联.以后可以在需要时仅使用标记重新部署应用程序版本.
tag: Specifying a tag name, this allows associating the deployed webapp with a version number. The application version can be later redeployed when needed using only the tag.
此外,您可以通过在 ## 之后添加版本来部署同一战争的多个版本(例如 myApp##1.0.war、myApp##1.1.war).经理将在概览中显示此版本.
Also, you can deploy multiple versions of the same war by adding the version after ## (e.g. myApp##1.0.war, myApp##1.1.war). The manager will show this version in the overview.
这篇关于Tomcat 管理器中的 Web 应用程序版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!