Create a simple HTTP server with Java?

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

    The easiest is Simple there is a tutorial, no WEB-INF not Servlet API no dependencies. Just a simple lightweight HTTP server in a single JAR.

提交回复
热议问题