search

Home  >  Q&A  >  body text

java - 安装程序内嵌http服务?

普通的web应用程序都是需要一个服务器,比如tomcat、nginx等。但我看过一些安装到本地的一些程序,安装完成之后,可以在浏览器中输入端口号进行访问。这种程序师怎么开发的?

PHPzPHPz2841 days ago755

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 15:08:31

    Starting a web server does not necessarily require such a large container, as long as it listens to a port and implements the http protocol

    reply
    0
  • 阿神

    阿神2017-04-17 15:08:31

    The most common way in Java is to embed a jetty in the program to improve the http service

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:08:31

    You can start jvm through an external program written in c/c++ as a wrapper to run tomcat or jetty.
    Under windows, this wrapper can also be implemented as a windows service.

    reply
    0
  • Cancelreply