不使用 Web/应用服务器的 Web 应用程序的最佳框架是什么?

发布于 2024-09-13 10:28:44 字数 99 浏览 1 评论 0原文

我想部署一个 Web 应用程序,而不像 sonar/hudson 那样使用 Web 服务器(Tomcat、Jboss 等)。什么演示框架适合它,具有 JSP/Struts 之类的功能?

I want to deploy an web application without using web server(Tomcat,Jboss etc.) like sonar/hudson does. What presentation framework is suitable for it which has JSP/Struts like capabilites?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痕至 2024-09-20 10:28:44

您可以使用嵌入式 Jetty

Jetty提供了一个HTTP服务器,HTTP
客户端和 javax.servlet 容器。
这些组件是开源的并且
可用于商业用途和
分布。

Jetty 用途广泛
项目和产品。码头可以
嵌入设备、工具、
框架、应用程序服务器和
集群。

请参阅这个关于嵌入 Jetty 的官方教程,Hello World 非常简单:

public class SimplestServer
{
    public static void main(String[] args) throws Exception
    {
        Server server = new Server(8080);
        server.start();
        server.join();
    }
}

You can use embedded Jetty

Jetty provides an HTTP server, HTTP
client, and javax.servlet container.
These components are open source and
available for commercial use and
distribution.

Jetty is used in a wide variety of
projects and products. Jetty can be
embedded in devices, tools,
frameworks, application servers, and
clusters.

See this official tutorial about embedding Jetty, the Hello World is as simple as:

public class SimplestServer
{
    public static void main(String[] args) throws Exception
    {
        Server server = new Server(8080);
        server.start();
        server.join();
    }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文