Create a simple HTTP server with Java?

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

    If you are using the Sun JDK you can use this built in library
    Look at this site on how to use.

    If n ot there are several Open Source HTTP Servers here which you can embed into your software.

提交回复
热议问题