简体   繁体   English

如何为 Map/Java 应用程序创建简单的 Web 服务器?

[英]How to create simple Web Server for Map/Java Application?

我想为 (localhost) 创建 web 服务器: 1-提供 HTML 代码 ( https://leafletjs.com/ ) 2-从客户端接收请求(Ajax 请求),调用后端中的相应方法并发送结果回到客户端。

Install an "Apache Tomcat" application server and write a "Servet Application" or use "Java Server Faces".安装“Apache Tomcat”应用服务器并编写“Servet Application”或使用“Java Server Faces”。 Google for those keywords.谷歌搜索这些关键字。

I wrote a german tutorial about this: http://stefanfrings.de/jsf_tutorial/index.html there is a translation link in the upper right corner.我写了一篇关于这个的德语教程: http : //stefanfrings.de/jsf_tutorial/index.html右上角有一个翻译链接。

If you do not want to install an application server, then you may prefer to use Jetty, which is basically the same as Tomcat but embedded in your own executable program.如果您不想安装应用服务器,那么您可能更喜欢使用 Jetty,它与 Tomcat 基本相同,但嵌入在您自己的可执行程序中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM