【问题标题】:What is the recommended way to develop a spring boot application for deployment on websphere?开发用于在 websphere 上部署的 Spring Boot 应用程序的推荐方法是什么?
【发布时间】:2017-03-15 21:41:17
【问题描述】:
我们必须将 websphere 用于我们正在构建的新应用程序的生产环境。我想使用spring boot来快速开发其余服务。但是当我们将在生产中部署到 websphere 时,默认情况下 Spring Boot 项目中嵌入了一个 tomcat 似乎是一个问题。对于我们如何开发用于在 websphere 上部署的 Spring Boot 项目,是否有最佳实践或建议?
【问题讨论】:
标签:
spring-boot
websphere
【解决方案1】:
Spring Boot 支持作为 JAR 文件(使用嵌入式容器,如 Tomcat 的默认方法)或作为 WAR 文件部署到应用程序服务器(如 WebSphere Application Server - WAS)。
您可以在参考手册中找到生成此类war文件的过程:Create a deployable war file
要在 WAS 环境中部署,您可以使用此 generator 来帮助您进行配置。