spring-boot - 开发在 websphere 上部署的 spring boot 应用程序的推荐方法是什么?

标签 spring-boot websphere

我们必须使用 websphere 作为我们正在构建的新应用程序的生产环境。我想使用spring boot来快速开发其余服务。但是,当我们在生产中部署到 websphere 时,Spring Boot 项目默认嵌入了 Tomcat,这似乎是一个问题。对于我们如何开发在 websphere 上部署的 spring boot 项目,是否有最佳实践或建议?

最佳答案

Spring Boot 支持以 JAR 文件(默认方法使用 Tomcat 等嵌入式容器)或 WAR 文件的形式部署到应用程序服务器(如 WebSphere Application Server - WAS)。

您可以在引用手册中找到生成此类 war 文件的过程:Create a deployable war file

要在 WAS 环境上部署,您可以使用此 generator帮助您进行配置。

关于spring-boot - 开发在 websphere 上部署的 spring boot 应用程序的推荐方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42821221/

相关文章:

java - 定时器服务 : Bean does not have timers in EJB3. 1

ssl - Websphere 应用程序服务器不支持德国电信根证书

java - Eclipse 工作区错误

java - 是否可以将网络WebSphere服务器添加到Eclipse?

java - CrudRepository : Save method deletes entry

java - Docker 中的 OOM,带有 Spring Boot + H2 + JPA 和批处理

mysql - admin 不以一对一关系保存在用户表中 spring boot

java - 无法在 WebSphere 上加载以下字体

c# - 如何将C#代码转换为Kotlin的Json库

java - Spring Data (Hibernate) 动态 WHERE 子句