Create a simple HTTP server with Java?

后端 未结 13 2561
时光取名叫无心
时光取名叫无心 2020-11-28 04:16

What\'s the easiest way to create a simple HTTP server with Java? Are there any libraries in commons to facilitate this? I only need to respond to GET/POST, and

13条回答
  •  [愿得一人]
    2020-11-28 04:37

    Embedding Tomcat is relatively painless as such things go. Here's a good StackOverflow reference about it.

提交回复
热议问题