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

PPT_Lecture-3.2.3

The document outlines a lecture on the basics of the Spring Framework, including its overview, setup, and benefits. It provides prerequisites for configuring Spring in Eclipse and includes steps for creating a basic Spring application. Additionally, it lists references for further learning about Spring fundamentals.

Uploaded by

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

PPT_Lecture-3.2.3

The document outlines a lecture on the basics of the Spring Framework, including its overview, setup, and benefits. It provides prerequisites for configuring Spring in Eclipse and includes steps for creating a basic Spring application. Additionally, it lists references for further learning about Spring fundamentals.

Uploaded by

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

INSTITUTE : UIE

DEPARTMENT : CSE
Bachelor of Engineering (Computer Science & Engineering)
PROJECT BASED LEARNING IN JAVA WITH LAB
(22CSH-359/22ITH-359)

TOPIC OF PRESENTATION:

Basics of Spring and setup. (CO 5)

DISCOVER . LEARN . EMPOWER


Lecture Objectives

In this lecture, we will discuss:


•Overview of Spring
Framework and setting up the
Envitronment
Overview of Spring Framework
 A comprehensive framework for enterprise Java
applications.
 Provides support for developing Java-based
applications with features like Dependency
Injection, Aspect-Oriented Programming (AOP), etc.
 Key modules: Spring Core, Spring MVC, Spring Boot,
Spring Data, and more.
Benefits of Spring Framework
Disadvantage of Spring Framework
Creating First Program...
Prerequisites:
Before setting up Spring Framework, ensure you have:

• Java Development Kit (JDK) installed


• Eclipse IDE installed
• Apache Maven installed
• Required Spring jar files or dependencies
Configuring Spring in Eclipse
Configuring Spring Framework in Eclipse

• Open Eclipse and create a new Java Project


• Convert project to Maven (Right click -> configure -> Convert to Maven Project)
• Add Dependencies in pom.xml:
spring-context
spring-core
spring-beans
• Update Maven Project and Build the application
Writing a Basic Spring Application
Let's create a simple Spring application:

• Create a configuration file (applicationContext.xml)


• Define a simple java bean
• Load the Bean using spring container
• Run the application
Sample Spring Application Code
Java Bean (HelloWorld.java) Spring Configuration
(applicationContext.xml)
Running the Spring Application
• Create a Main.java file

• Run Main.java and see the output.


Output: “Hello Spring”
Summary:

In this session, you were able to :

•Learn about Overview of Spring Framework and setting up the


Envitronment
References:
Books:
• Spring in Action – Craig Walls (Best for learning Spring fundamentals)
• Pro Spring 6 – Iuliana Cosmina, Rob Harrop, Chris Schaefer (Comprehensive guide)

Reference Links:
https://www.javatpoint.com/example-of-spring-application-in-eclipse

Video Link:
https://youtu.be/If1Lw4pLLEo?feature=shared
https://youtu.be/VvGjZgqojMc?feature=shared
THANK YOU

You might also like