A Java HTTP Server

后端 未结 10 2024
轮回少年
轮回少年 2021-01-03 08:59

I want to implement a Java HTTP server locally, I mean the server computer would be in my control. I\'m expecting not more than 20 clients to send requests to it. I was wond

10条回答
  •  北荒
    北荒 (楼主)
    2021-01-03 09:09

    I guess the biggest question is: why do you want to build this?

    If it is for the purpose of personal development, I'd stick to whatever standard libraries come with your JDK and build it on top of that.

    If on the other hand you have a particular application that needs a dedicated HTTP server I would try to take one of the open source servlet containers, like Jetty or Tomcat and build on those.

提交回复
热议问题