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