Difference between servlet and web service

前端 未结 7 729
死守一世寂寞
死守一世寂寞 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:20

    What you're describing is a web application, where a human uses a browser to interact with a software system.

    A web service is a way for software systems to communicate with each other using HTTP and XML or JSON, without any humans involved.

    A servlet is a Java-specific way of writing software that responds to HTTP requests. Spring MVC abstracts away a lot of the implementation detail to make writing web applications easier, but uses servlets under the covers.

    0 讨论(0)
提交回复
热议问题