目前我遇到以下情况的问题:
- 在 Wildfly 中,虚拟主机在
standalone.xml
文件中定义。 - 要将已部署的
.war
-Artifact 绑定(bind)到虚拟主机,请将虚拟主机放置在.war< 的
-神器。jboss-web.xml
中
这导致 .war
-Artifacts 依赖于当前(Wildfly)环境来工作,因此不可交换,例如存储在 Artifactory 等工件存储中。
有没有办法解决这个问题,或者假设 1 和/或 2 一开始就是错误的?
最佳答案
显然,我不知道有一种方法可以在某些部署描述符中使用占位符:
jboss-descriptor-property-replacement is used to enable or disable property replacement in the following descriptors:
jboss-ejb3.xml
jboss-app.xml
jboss-web.xml
*-jms.xml
*-ds.xml
分别
spec-descriptor-property-replacement is used to enable or disable property replacement in the following descriptors:
ejb-jar.xml
persistence.xml
关于jakarta-ee - Wildfly、WAR 和虚拟主机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48302973/