便携,开源的Java Web服务器的建议? [英] Portable, Open-Source Java Web Server Recommendations?

查看:161
本文介绍了便携,开源的Java Web服务器的建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个良好的Java Web服务器框架,我可以捆绑成可以从命令行运行的可执行文件?

Does anyone know a good Java Web Server framework that I can be bundled into an executable that can be run from the command line?

基本上的东西,让我开发出通过HTTP和用户的端口上运行一个程序需要这些安装步骤:

Basically something that allows me to develop a program that runs on a port via HTTP and for the user requires these installation steps:


  1. 安装Java。

  2. 下载可执行我的工具。

  3. 从命令行运行它。

任何想法,如果有像Java Spring或为此提供Grails的支持流行的框架?

Any idea if any of the popular frameworks like Java Spring or Grails offer support for this?

推荐答案

你吃过看看码头

从码头网站:

码头提供了一个Web服务器和的javax。的servlet容器,八方支援
  对Web套接字,OSGi中,JMX,JNDI,JASPI,AJP和许多其他
  集成。这些组件都是开源的,可
  商业使用和分配。

Jetty provides an Web server and javax.servlet container, plus support for Web Sockets, OSGi, JMX, JNDI, JASPI, AJP and many other integrations. These components are open source and available for commercial use and distribution.

在嵌入Jetty详情可参阅这里

Details on embedding Jetty can be found here.

这篇关于便携,开源的Java Web服务器的建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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