Difference between servlet and web service

前端 未结 7 771
死守一世寂寞
死守一世寂寞 2020-12-07 08:29

What is the difference between these 2? I found few results on google nothing conclusive.

Here is a follow up question:

Say I create spring mvc web app ann

7条回答
  •  被撕碎了的回忆
    2020-12-07 09:13

    My take on it would be that Web Service defines higher level abstraction such as some business specific functionality. While Servlet is just a software implementation component responsible for transport of data.

    Web Service implementation would typically rely on servlet for receiving data. However, it can as well use it's custom layer of dealing with protocol data.

    @Controller is probably more related to Web Service than servlet which is,again, a way to implement transport.

提交回复
热议问题