如何在 Weblogic 12c 上部署 Spring Boot(非 Web)应用程序 [英] How to deploy a Spring Boot (non-web) Application on Weblogic 12c

查看:33
本文介绍了如何在 Weblogic 12c 上部署 Spring Boot(非 Web)应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署一个在 Weblogic 12c 服务器中不执行任何 servlet 的 Spring Boot 应用程序.通常,主应用程序类将实现 WebApplicationInitializer,然后 Weblogic 将从那里获取它.当我不为我的应用程序执行此操作时,Weblogic 会很好地安装 war 文件,但随后什么也没有发生.

I'm trying to deploy a Spring Boot application that does not do any servlets in a Weblogic 12c server. Normally the main application class would implement WebApplicationInitializer and then Weblogic would take it from there. When I don't do this for my application, Weblogic installs the war file just fine, but then nothing happens.

我的主应用程序类是否需要实现某种其他类型的接口才能让 Weblogic 启动它?

Is there some other kind of interface my main application class needs to implement in order for Weblogic to start it up?

推荐答案

您不能部署不实现 Weblogic/Java EE 部署标准之一的工件.

You can't deploy an artifact which doesn't implement one of the Weblogic/Java EE deployment standards.

根据文档 Weblogic 支持以下部署单元:

According to the documentation Weblogic supports the following deployment units:

  • 网络应用

  • Web Application

企业 JavaBean

Enterprise JavaBean

资源适配器

网络服务

Java EE 库

可选套餐

JDBC、JMS 和 WLDF 模块

JDBC, JMS, and WLDF Modules

客户应用档案

这意味着当且仅当实现上述标准之一时,您才能部署工件.

Which means that you can deploy an artifact if and only if it implements one of above standards.

Spring Boot 应用程序都没有实现.但是实现 WebApplicationInitializer 使 Spring Boot 应用程序实现了 Web 应用程序标准,以便它可以部署到 Servlet 容器或任何其他支持 Servlet 标准的服务器.

Spring Boot application implements neither of those. But implementing WebApplicationInitializer makes the Spring Boot application implement Web Application standard so that it can be deployed to a Servlet Container or any other server that supports Servlet standard.

如果您不想将应用程序部署为 Web 应用程序,则必须手动实施所列标准之一.

If you don't want to deploy your application as Web Application you have to manually implement one of the listed standards.

这篇关于如何在 Weblogic 12c 上部署 Spring Boot(非 Web)应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆