Spring-Boot
Spring-Boot
CONFIDENTIAL 1
What Spring Boot is NOT?
CONFIDENTIAL 2
Spring Boot
• The main aim of Spring Boot is to let developers to create spring production
grade applications and services with very less effort.
• Spring Boot comes with inbuilt server, we no longer have to use any external
servers like Tomcat, Glass-fish or anything else, so don’t need to deploy WAR
files
CONFIDENTIAL 3
Spring Boot
• Spring Boot starters are templates that contain a collection of all the
relevant transitive dependencies that are needed to start a particular
functionality. For example, If you want to create a Spring WebMVC application
then in a traditional setup, you would have included all required dependencies
yourself. It leaves the chances of version conflict which ultimately result in
more runtime exceptions.
CONFIDENTIAL 4
Advantages of Spring Boot
• It provides embedded HTTP server Tomcat so that you can develop and test quickly.
• It has excellent integration with IDEs like eclipse and intelliJ idea.
CONFIDENTIAL 5
@SpringBootApplication Annotation
3. @ComponentScan
CONFIDENTIAL 6
What is spring-boot-starter-parent dependency?
CONFIDENTIAL 7
Spring-boot-starter Maven Templates
Spring Boot comes with over 50+ different starter modules, which
provide ready-to-use integration libraries for many different
frameworks, such as database connections that are both relational and
NoSQL, web services, social network integration, monitoring libraries,
logging, template rendering, and the list just keeps going on
CONFIDENTIAL 8
Popular templates and their transitive dependencies
STARTER DEPENDENCIES
spring-boot-starter spring-boot, spring-context, spring-beans
spring-boot-starter-web-
spring-ws-core
services
CONFIDENTIAL 9
References
https://docs.spring.io/spring-boot/docs/current/reference/html/
https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-propertie
s.html
CONFIDENTIAL 10