Maven dependency spring-web vs spring-webmvc

后端 未结 2 1387
小蘑菇
小蘑菇 2021-01-29 20:54

What is the difference between the following dependencies?


    org.springframework         


        
2条回答
  •  醉酒成梦
    2021-01-29 21:26

    spring-web provides core HTTP integration, including some handy Servlet filters, Spring HTTP Invoker, infrastructure to integrate with other web frameworks and HTTP technologies e.g. Hessian, Burlap.

    spring-webmvc is an implementation of Spring MVC. spring-webmvc depends on on spring-web, thus including it will transitively add spring-web. You don't have to add spring-web explicitly.

    You should depend only on spring-web if you don't use Spring MVC but want to take advantage of other web-related technologies that Spring supports.

提交回复
热议问题