0% found this document useful (0 votes)
5 views

Spring Framework-Lecture 1

This document outlines an introductory lecture on Spring and Spring Boot, covering prerequisites, definitions of frameworks and libraries, and the benefits of using them. It introduces the Spring Framework as a popular Java framework for building applications, detailing its modular design and widespread use in the industry. The course content includes various Spring modules such as Spring Core, Spring JDBC, Spring MVC, and Spring Boot, along with their functionalities and applications.

Uploaded by

Yashraj Shukla
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Spring Framework-Lecture 1

This document outlines an introductory lecture on Spring and Spring Boot, covering prerequisites, definitions of frameworks and libraries, and the benefits of using them. It introduces the Spring Framework as a popular Java framework for building applications, detailing its modular design and widespread use in the industry. The course content includes various Spring modules such as Spring Core, Spring JDBC, Spring MVC, and Spring Boot, along with their functionalities and applications.

Uploaded by

Yashraj Shukla
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24

SPRING & SPRING BOOT

LECTURE - 1
Today’s Agenda

Pre Requisites
What is a Framework ?
Framework Vs Library
Types of Frameworks
Introduction to Spring Framework
Course Content
What you should know ?

 Core Java
OOP basics

Specially Inheritance, Polymorphism and Interface

Exception Handling

Collections
 JDBC

Basic knowledge of Servlet


What is a Programming Language ?

 Communication medium between humans and computers.

 Provides syntaxes and semantics .

 Used to develop softwares apps, technologies, libraries and even


frameworks .

Examples: C, C++, Java, C#, Kotlin, Scala, Python etc


What is a Library ?

 A collection of predefined methods, classes or interfaces used for solving


common problem.

 Come either bundled with a language or can be downloaded from the


internet and used.

 Examples of Libraries –

Standard Libraries : java.lang, java.util, java.io

3rd Party Libraries : apache commons, twilio, iText


Benefits of
Library ?
 Reusability

 Reduces Programmer’s efforts

 Allows a programmer to focus on main problem.


A Real-Life Example

Imagine, a chef needs to make a Pizza


Making a Pizza
Stretch it using Cut it using Pizza
Prepare a dough rolling pin Cutter

These tools are like a Library Job Done !! Bake it in an Oven


What is a Framework ?

 Collection of multiple Libraries.

 Provides foundation on which we can build our code.

 It provides pre-written common logics so that we can focus on business logic only.

 Provides reusable components


A Real-life Example
Imagine, how DOMINOS makes Pizza ?
Dominos Pizza
Making
Put Ingredients in a Dough Machine will Stretching & Cutting using
Dough Machine produce Dough Balls Pizza Cutter Machine

This Pizza Factory is a Framework Job Done !! Bake in Pizza Oven


Library Vs Framework
 Libraries are focused to a specific task only while a framework has a wide range of
functionality and used to build complete application.

 Our code calls the Library, while in case of framework it calls our code.
Benefits
 Speeds up Development Process

 Secure

 Forces us to follow standard programming practices and thus make


our code clean.
Web Application
Architecture

USER INTERFACE WEB LAYER BUSINESS LAYER DAO DATABASE


(Code for DB Access)

Backend Application
Frontend Application
Types of Frameworks
WEB FRAMEWORK
FRONTEND FRAMEWORK
1 2

Types
Of
Frameworks

ORM FRAMEWORK APPLICATION


DEVELOPMENT
3 4 FRAMEWORK

03 - SOCIAL MEDIA
Web Application
Architecture

USER INTERFACE DATABASE


WEB LAYER
BUSINESS LAYER DAO

Backend Application
Frontend Application
Web Application
Architecture

USER INTERFACE DATABASE


WEB LAYER
BUSINESS LAYER DAO

Backend Application
Frontend Application
Introduction to Spring Framework

o Spring is the most popular Java framework for building any type of Java application.

o Popularly called Framework of Frameworks.

o Spring is free & open-source framework

o Spring is developed in modular fashion.

o Commonly used as ‘backend’ technology

o Over 87% of the companies using Java use Spring


Course Contents

Spring Core
Intro to Spring Framework
• Inversion of Control (IoC)
• What is Spring ? • Dependency Injection (DI)
• History of Spring • Autowiring, Bean Scopes
• Spring release timeline • Different Approaches for Bean
• Different modules inside Spring
Creation
Course Contents

Spring JDBC Spring Data Spring Boot

• Problems with Core Java JDBC • Why do we need ORM • Why Spring Boot
• Advantages with Spring JDBC framework • Auto-configuration
• Performing CRUD operations • Introduction to JDP • Build Web Apps using Spring
with Spring JDBC • Derived query method in JPA Boot
• Details about JDBC template • OneToOne, OneToMany • Spring Boot Dev Tools
mappings inside JPA • Connecting to MySQL
• JPQL Database
Course Contents

Spring MVC Thymeleaf

• Intro to MVC pattern


• • How to build Dynamic Web
Overview of Web Apps
• How Web App works ? Apps using Thymeleaf & Spring
• • Thymeleaf integration with
Spring MVC Internal flow
• Spring MVC Validations Spring, Spring MVC
Course Contents

Spring Rest Actuator

• Building Rest Services • Intro to Spring Boot Actuator


• Consuming Rest Services • Exploring the API’s of Actuator
• Spring Data Rest • Viewing Actuator Data in Spring
• HAL Explorer Boot
Course Fee
THANK YOU
www.scalive.in

You might also like