Create a simple HTTP server with Java?

后端 未结 13 2607
时光取名叫无心
时光取名叫无心 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:44

    Jetty is a great way to easily embed an HTTP server. It supports it's own simple way to attach handlers and is a full J2EE app server if you need more functionality.

提交回复
热议问题