Is JAX-RS built on top of Servlet API? How?

前端 未结 3 1237
旧巷少年郎
旧巷少年郎 2021-02-13 11:25

I\'ve been reading that the JAX-RS is built on top of servlets. Is this literally true, or it just mean that it is a higher level component? If it is, how does that work? Does J

3条回答
  •  无人共我
    2021-02-13 12:20

    This is the official documentation of Jboss Resteasy.

    RESTeasy is implemented as a ServletContextListener and a Servlet and deployed within a WAR file.

    JAX-RS implementations do use ServletAPI for routing and parsing the requests. It is implementation detail and need not be mentioned in the specification.

提交回复
热议问题