Hi,
Hope you are all doing great. Let's learn together.
Join Telegram: 📲 https://t.me/contactajoydebnath
Chapters❤
0:00 Introduction
07:08 Spring MVC
29:07 DispatcherServlet, Handler Mappings, ViewResolver
33:49 Deployment Descriptor
35:35 Spring MVC Code Implementation
Note:
Spring is a lightweight framework. It was developed by Rod Johnson in 2003. Spring framework makes the easy development of JavaEE applications.
Video Links:
Core Java Playlist:
• Core Java
Java Videos Links :
Stream API : Intermediate & Terminal operations. -- • Stream API : Intermediate & Terminal opera...
Stream API: Intermediate & Terminal operations. -- • Stream API: Intermediate & Terminal operat...
Factory Method Design Pattern. -- • Factory Method Design Pattern. Bengali-Ep:...
How to create Immutable class in Java? Immutable Design Pattern. -- • How to create Immutable class in Java? Imm...
Object Cloning, Shallow Copy and Deep Copy. -- • Object Cloning, Shallow Copy, and Deep Cop...
Excetption, Custom Exception, throw, throws -- • Exception, Custom Exception, throw, throws...
Excetption, try, catch, finally -- • Exception, Propagation try, catch, finally...
Exception, Exception Hierarchy, Call Stack, Propagation. Bengali-Ep:22 -- • Exception, Exception Hierarchy, Call Stack...
Lambda Expression, Functional Interfaces, Anonymous Class. -- • Lambda Expression, Functional Interfaces, ...
Spring Video List:
Model-View-Controller(MVC), Spring MVC. -- • Model-View-Controller(MVC), Spring MVC. Sp...
JDBCTemplate, RowMapper,ResultSetExtractor,BeanPropertyRowMapper Spring -- • JDBCTemplate, RowMapper,ResultSetExtractor...
Spring JDBCTemplate, JDBC, Statement and PreparedStatement -- • Spring JDBCTemplate, JDBC, Statement and P...
What if we remove @Configuration annotation in Spring? -- • What if we remove the @Configuration annot...
@Configuration, @Bean, @Component, @ComponentScan in Spring. -- • @Configuration, @Bean, @Component, @Compon...
Autowiring, Autowiring Modes - byName, byType & constructor. -- • Autowiring, Autowiring Modes - byName, byT...
Bean Scope ,Sinton Scope and Prototype Scope. -- • Bean Scope, Singleton Scope, and Prototype...
IOC Container, BeanFactory, Important APIs, Lazy & Eager Loading. -- • IOC Container, BeanFactory, Lazy & Eager L...
IOC,Dependency Injection,IOC Container,Coupling - • IOC,Dependency Injection,IOC Container,Cou...
Document Link -
https://docs.google.com/document/d/16...
Like, Comment, Share, and Subscribe.
Thank you again.
STS Link:
https://spring.io/tools
Eclips Download
https://www.eclipse.org/downloads/pac...
Tomcat Download
https://tomcat.apache.org/download-90...
JDK Link:
https://www.oracle.com/java/technolog...
To download spring jars
https://repo.spring.io/ui/native/rele...
MYSql Connector JAR
https://mvnrepository.com/artifact/my...
MYSql Installer
https://dev.mysql.com/downloads/insta...
Spring IOC Container:
Spring IoC Container is the core of Spring Framework. It creates the objects, configures and assembles their dependencies, and manages their entire life cycle. The Container uses Dependency Injection(DI) to manage the components that make up the application. It gets the information about the objects from a configuration file(XML) or Java Code or Java Annotations and Java POJO class. These objects are called Beans.
Bean:
In Spring, the objects that are managed by the Spring IoC container are called Beans.
Spring MVC:
It's a module of the Spring framework dealing with the Model-View-Controller or MVC pattern.
The DispatcherServlet acts as the main controller to route requests to their intended destination. Model is nothing but the data of our application, and the view is represented by any of the various template engines.
In the traditional approach, MVC applications are not service-oriented hence there is a View Resolver that renders final views based on data received from a Controller.
RESTful applications are designed to be service-oriented and return raw data (JSON/XML typically). Since these applications do not do any view rendering, there are no View Resolvers – the Controller is generally expected to send data directly via the HTTP response.
DispatcherServlet:
In Spring MVC, the DispatcherServlet acts as a front controller – receiving all incoming HTTP requests and processing them.
Handler Mappings:
The HandlerMapping component parses a Request and finds a Handler that handles the Request, which is generally understood as a method in the Controller.
1.BeanNameUrlHandlerMapping (Default Implementation)
2.SimpleUrlHandlerMapping
3.ControllerClassNameHandlerMapping : removed in Spring 5
ViewResolver:
The ViewResolver provides a mapping between view names and actual views.
1.InternalResourceViewResolver
2.BeanNameViewResolver
3.ThymeleafViewResolver
Deployment Descriptor
Java web applications use a deployment descriptor file to determine how URLs map to servlets, which URLs require authentication, and other information. This file is named web.xml and resides in the app's WAR under the WEB-INF/ directory
Информация по комментариям в разработке