SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Spring Boot
1
AGENDA
 Introduction
 Spring Boot vs Spring vs Spring MVC
 Advantages
 Where to start and how does Spring boot work ?
 Dependency Management
 Logging
 Exception Handling
 Database Handling
 Q &A
 Talks and videos
SPRING BOOT
2
Introduction
 Spring Boot provides a good platform for Java developers to develop a
stand-alone and production-grade spring application that you can just run.
You can get started with minimum configurations without the need for an
entire Spring configuration setup.
SPRING BOOT
3
Spring Boot vs Spring vs Spring MVC
 Spring
 Most important feature of Spring Framework is Dependency Injection. At the
core of all Spring Modules is Dependency Injection or IOC Inversion of Control.
 Spring MVC
 Spring MVC Framework provides decoupled way of developing web
applications. With simple concepts like Dispatcher Servlet, ModelAndView and
View Resolver, it makes it easy to develop web applications.
 Spring Boot
 Auto Configuration
 Built around well known patterns
SPRING BOOT
4
Advantages
 It provides a flexible way to configure Java Beans, XML configurations,
and Database Transactions.
 It provides a powerful batch processing and manages REST endpoints.
 In Spring Boot, everything is auto configured; no manual configurations are
needed.
 It offers annotation-based spring application
 Eases dependency management
 It includes Embedded Servlet Container
SPRING BOOT
5
Where to start and how does Spring
boot work ?
 Kindly visit https://start.spring.io/ to start your spring boot application.
 Entry point for spring boot application is the class that contains
@SpringBootApplication annotation and the main method.
 @EnableAutoConfiguration,
@ComponentScan and @SpringBootConfiguration
 @EnableAutoConfiguration autoconfigures dependencies present in
project.
 @ComponentScan scans all the components in the projects.
 Spring Boot Starters are used to manage dependencies.
 Eg: spring-boot-starter-data-jpa, spring-boot-starter-web
6
SPRING BOOT
Dependency Management
 Spring Boot team provides a list of dependencies to support the Spring
Boot version for its every release. You do not need to provide a version for
dependencies in the build configuration file. Spring Boot automatically
configures the dependencies version based on the release. Remember
that when you upgrade the Spring Boot version, dependencies also will
upgrade automatically.
 In Spring Boot, we can use Spring Framework to define our beans and
their dependency injection. The @ComponentScan annotation is used to
find beans and the corresponding injected with @Autowired annotation.
7
SPRING BOOT
Logging
 Spring Boot uses Apache Commons logging for all internal logging.
 Spring Boot’s default configurations provides a support for the use of Java
Util Logging, Log4j2, and Logback.
 By using Spring Boot Starters, Logback will provide a good support for
logging.
8
SPRING BOOT
Exception Handling
 The @ControllerAdvice is an annotation, to handle the exceptions globally.
 The @ExceptionHandler is an annotation used to handle the specific
exceptions and sending the custom responses to the client.
 Sample code snippet:
 @ControllerAdvice public class ProductExceptionController {
@ExceptionHandler(value = ProductNotfoundException.class)
public ResponseEntity<Object> exception(ProductNotfoundException
exception) {
return new ResponseEntity<>("Product not found", HttpStatus.NOT_FOUND);
}
}
9
SPRING BOOT
Database Handling
 Spring Boot provides a very good support to create a DataSource for
Database. We need not write any extra code to create a DataSource in
Spring Boot. Just adding the dependencies and doing the configuration
details is enough to create a DataSource and connect the Database.
10
SPRING BOOT
Q &A
11
SPRING BOOT
Talks and videos
 https://www.tutorialspoint.com/spring_boot/index.htm
 It’s a Kind of Magic: Under the Covers of Spring Boot
 What’s New in Spring Boot 2.0
 Test Driven Development with Spring Boot
 From Zero to Hero with Spring Boot 2.0
Thank You
12
SPRING BOOT

More Related Content

PDF
Spring Boot
PDF
Introduction to Spring Boot!
PDF
Spring Boot
PDF
Spring Boot
PDF
Spring boot introduction
PPTX
Spring boot
PPTX
Spring Boot Tutorial
PDF
PUC SE Day 2019 - SpringBoot
Spring Boot
Introduction to Spring Boot!
Spring Boot
Spring Boot
Spring boot introduction
Spring boot
Spring Boot Tutorial
PUC SE Day 2019 - SpringBoot

What's hot (20)

PPTX
Spring boot
PPT
Spring Boot in Action
PPTX
Introduction to Spring Boot
PDF
Spring boot
PPTX
Spring boot Introduction
PPT
Spring Core
PPTX
Spring Framework
PDF
REST APIs with Spring
PPTX
Spring boot - an introduction
PDF
Spring Boot & Actuators
PDF
Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...
PDF
Spring Framework - Core
ODP
Xke spring boot
PPTX
Introduction to Spring Framework
PPSX
Spring - Part 1 - IoC, Di and Beans
PDF
Spring Boot
PPTX
Spring Boot and REST API
PDF
Spring Boot
PPTX
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
PDF
Spring Framework - AOP
Spring boot
Spring Boot in Action
Introduction to Spring Boot
Spring boot
Spring boot Introduction
Spring Core
Spring Framework
REST APIs with Spring
Spring boot - an introduction
Spring Boot & Actuators
Spring Framework Tutorial | Spring Tutorial For Beginners With Examples | Jav...
Spring Framework - Core
Xke spring boot
Introduction to Spring Framework
Spring - Part 1 - IoC, Di and Beans
Spring Boot
Spring Boot and REST API
Spring Boot
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Spring Framework - AOP
Ad

Similar to Spring boot (20)

PDF
Spring Boot Interview Questions PDF By ScholarHat
PPTX
Java springboot framework- Spring Boot.pptx
PDF
dokumen.tips_rediscovering-spring-with-spring-boot1 (1).pdf
PDF
dokumen.tips_rediscovering-spring-with-spring-boot1.pdf
PDF
Rediscovering Spring with Spring Boot(1)
PDF
Spring boot vs spring framework razor sharp web applications
PPTX
Module 6 _ Spring Boot for java application to begin
PPTX
Spring boot
PPTX
Java on Rails SV Code Camp 2014
PDF
Spring Boot Whirlwind Tour
PPTX
Spring-Boot-A-Modern-Framework-for-Java-Developers.pptx
PDF
Building a Spring Boot Application - Ask the Audience! (from JavaLand 2017)
PPTX
Spring data jpa are used to develop spring applications
PPTX
SPring boot.pptx
PPTX
Top 10 Spring Boot Interview Questions and Answers
PDF
Building a Spring Boot Application - Ask the Audience! (from JVMCon 2018)
PDF
Springboot - A milestone framework in Java Development
PPTX
Java and services code lab spring boot and spring data using mongo db
PPTX
Java and services code lab spring boot and spring data using mongo db
PPTX
SpringBootCompleteBootcamp.pptx
Spring Boot Interview Questions PDF By ScholarHat
Java springboot framework- Spring Boot.pptx
dokumen.tips_rediscovering-spring-with-spring-boot1 (1).pdf
dokumen.tips_rediscovering-spring-with-spring-boot1.pdf
Rediscovering Spring with Spring Boot(1)
Spring boot vs spring framework razor sharp web applications
Module 6 _ Spring Boot for java application to begin
Spring boot
Java on Rails SV Code Camp 2014
Spring Boot Whirlwind Tour
Spring-Boot-A-Modern-Framework-for-Java-Developers.pptx
Building a Spring Boot Application - Ask the Audience! (from JavaLand 2017)
Spring data jpa are used to develop spring applications
SPring boot.pptx
Top 10 Spring Boot Interview Questions and Answers
Building a Spring Boot Application - Ask the Audience! (from JVMCon 2018)
Springboot - A milestone framework in Java Development
Java and services code lab spring boot and spring data using mongo db
Java and services code lab spring boot and spring data using mongo db
SpringBootCompleteBootcamp.pptx
Ad

Recently uploaded (20)

PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
A Presentation on Artificial Intelligence
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Machine Learning_overview_presentation.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Machine learning based COVID-19 study performance prediction
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Tartificialntelligence_presentation.pptx
cloud_computing_Infrastucture_as_cloud_p
Univ-Connecticut-ChatGPT-Presentaion.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Unlocking AI with Model Context Protocol (MCP)
A Presentation on Artificial Intelligence
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Getting Started with Data Integration: FME Form 101
Machine Learning_overview_presentation.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Network Security Unit 5.pdf for BCA BBA.
Assigned Numbers - 2025 - Bluetooth® Document
Advanced methodologies resolving dimensionality complications for autism neur...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Programs and apps: productivity, graphics, security and other tools
Machine learning based COVID-19 study performance prediction
Heart disease approach using modified random forest and particle swarm optimi...
Group 1 Presentation -Planning and Decision Making .pptx
NewMind AI Weekly Chronicles - August'25-Week II
Encapsulation_ Review paper, used for researhc scholars
Tartificialntelligence_presentation.pptx

Spring boot

  • 2. AGENDA  Introduction  Spring Boot vs Spring vs Spring MVC  Advantages  Where to start and how does Spring boot work ?  Dependency Management  Logging  Exception Handling  Database Handling  Q &A  Talks and videos SPRING BOOT 2
  • 3. Introduction  Spring Boot provides a good platform for Java developers to develop a stand-alone and production-grade spring application that you can just run. You can get started with minimum configurations without the need for an entire Spring configuration setup. SPRING BOOT 3
  • 4. Spring Boot vs Spring vs Spring MVC  Spring  Most important feature of Spring Framework is Dependency Injection. At the core of all Spring Modules is Dependency Injection or IOC Inversion of Control.  Spring MVC  Spring MVC Framework provides decoupled way of developing web applications. With simple concepts like Dispatcher Servlet, ModelAndView and View Resolver, it makes it easy to develop web applications.  Spring Boot  Auto Configuration  Built around well known patterns SPRING BOOT 4
  • 5. Advantages  It provides a flexible way to configure Java Beans, XML configurations, and Database Transactions.  It provides a powerful batch processing and manages REST endpoints.  In Spring Boot, everything is auto configured; no manual configurations are needed.  It offers annotation-based spring application  Eases dependency management  It includes Embedded Servlet Container SPRING BOOT 5
  • 6. Where to start and how does Spring boot work ?  Kindly visit https://start.spring.io/ to start your spring boot application.  Entry point for spring boot application is the class that contains @SpringBootApplication annotation and the main method.  @EnableAutoConfiguration, @ComponentScan and @SpringBootConfiguration  @EnableAutoConfiguration autoconfigures dependencies present in project.  @ComponentScan scans all the components in the projects.  Spring Boot Starters are used to manage dependencies.  Eg: spring-boot-starter-data-jpa, spring-boot-starter-web 6 SPRING BOOT
  • 7. Dependency Management  Spring Boot team provides a list of dependencies to support the Spring Boot version for its every release. You do not need to provide a version for dependencies in the build configuration file. Spring Boot automatically configures the dependencies version based on the release. Remember that when you upgrade the Spring Boot version, dependencies also will upgrade automatically.  In Spring Boot, we can use Spring Framework to define our beans and their dependency injection. The @ComponentScan annotation is used to find beans and the corresponding injected with @Autowired annotation. 7 SPRING BOOT
  • 8. Logging  Spring Boot uses Apache Commons logging for all internal logging.  Spring Boot’s default configurations provides a support for the use of Java Util Logging, Log4j2, and Logback.  By using Spring Boot Starters, Logback will provide a good support for logging. 8 SPRING BOOT
  • 9. Exception Handling  The @ControllerAdvice is an annotation, to handle the exceptions globally.  The @ExceptionHandler is an annotation used to handle the specific exceptions and sending the custom responses to the client.  Sample code snippet:  @ControllerAdvice public class ProductExceptionController { @ExceptionHandler(value = ProductNotfoundException.class) public ResponseEntity<Object> exception(ProductNotfoundException exception) { return new ResponseEntity<>("Product not found", HttpStatus.NOT_FOUND); } } 9 SPRING BOOT
  • 10. Database Handling  Spring Boot provides a very good support to create a DataSource for Database. We need not write any extra code to create a DataSource in Spring Boot. Just adding the dependencies and doing the configuration details is enough to create a DataSource and connect the Database. 10 SPRING BOOT
  • 12. Talks and videos  https://www.tutorialspoint.com/spring_boot/index.htm  It’s a Kind of Magic: Under the Covers of Spring Boot  What’s New in Spring Boot 2.0  Test Driven Development with Spring Boot  From Zero to Hero with Spring Boot 2.0 Thank You 12 SPRING BOOT