Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between spring-boot-starter-web and spring-boot-starter-web-services and spring-boot-starter-jersey

Tags:

What is the difference between:

  • spring-boot-starter-web
  • spring-boot-starter-web-services
  • spring-boot-starter-jersey?

The documentation says Starter for building RESTful web applications using JAX-RS and Jersey. An alternative to spring-boot-starter-web

like image 602
Gaurav Raj Behl Avatar asked Oct 11 '16 07:10

Gaurav Raj Behl


People also ask

What is the difference between Spring boot starter and Spring boot starter web?

Difference Between Spring Boot Starter Web and Spring Boot Starter Tomcat. Spring Boot Starter Web is used for building RESTful applications using Spring MVC. Spring Boot Starter Tomcat is the default embedded container for Spring Boot Starter Web. We cannot exclude it while using web services.

What is Spring boot Starter web services?

spring-boot-starter-web. It is used for building the web application, including RESTful applications using Spring MVC. It uses Tomcat as the default embedded container. spring-boot-starter-data-gemfire. It is used to GemFire distributed data store and Spring Data GemFire.

What are the Spring boot starters and what are available the starters?

Spring Boot Starters are dependency descriptors that can be added under the <dependencies> section in pom. xml. There are around 50+ Spring Boot Starters for different Spring and related technologies. These starters give all the dependencies under a single name.

What is Spring boot Starter web maven?

Spring Boot Web StarterStarter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container. Licenses. Apache License, Version 2.0.


1 Answers

  • spring-boot-starter-web -> Services on Tomcat - typically REST services using Spring MVC for web layer
  • spring-boot-starter-jersey -> Services on Tomcat - typically REST services using Jersey implementation of JAX-RS for web layer
  • spring-boot-starter-web-services -> SOAP services

I highly recommend inspecting these POMs if you are familiar with Maven. Code answers your questions better than thousand SO answers.

like image 132
luboskrnac Avatar answered Sep 23 '22 07:09

luboskrnac