首页 > 解决方案 > 将 Spring Boot War 部署到多个 JBoss EAP 7.1 环境的设计

问题描述

我们在 Dev/Test/Prod 环境中拥有 JBoss EAP 7.1 服务器,我们希望为每个环境构建一场战争,并将它们部署在各个环境中。

如果我想运行 bootRun,有简单的解决方案(https://stackoverflow.com/a/44666897/5631863)。

但是,我不能从命令行运行应用程序,我只能在我的 JBoss 上部署战争。

如何使用烘焙到其中的配置文件进行构建?类似于以下内容:

gradle clean build -PactiveProfile=dev
gradle clean build -PactiveProfile=test
gradle clean build -PactiveProfile=prod

标签: spring-bootgradlebuildjboss7.x

解决方案


推荐阅读