spring-boot - 将 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
解决方案
推荐阅读
- python - 为什么我的代码在同一目录中找不到模块?
- symfony - 如何使用 VichUploader 包在编辑表单中自定义图片视图
- python-3.x - 检查图像是否方向不正确然后在处理前纠正其形式的条件?
- c++ - 如何在 C++ 中计算向量中的字节数?
- go - Kubernetes集群中Oracle长寿命连接的问题
- lua - 如何获取要调用的 __metatable 函数?
- android - UnrecognizedInputFormatException:没有可用的提取器可以读取流
- java - 为什么我无法将我的对象映射到这个字符串
- regex - 正则表达式 .+ 匹配过大
- angular - 在 Kendo 中为 Angular 下拉列表设置字体大小