What are the design-patterns used in Spring framework?

Pragya Keshap answered on February 10, 2023 Popularity 8/10 Helpfulness 3/10

Contents


More Related Answers


What are the design-patterns used in Spring framework?

0
Tip Pragya Keshap 1 GREPCC

Spring framework uses many Design patterns. Some of these

patterns are:

Singleton – By default beans defined in spring config files are

singleton. These are based on Singleton pattern.

Template – This pattern is used in many classes likeJdbcTemplate, RestTemplate, JmsTemplate, JpaTemplate etc.

Dependency Injection – This pattern is the core behind the design of

BeanFactory and ApplicationContext.

Proxy – Aspect Oriented Programming (AOP) heavily uses proxy

design pattern.

Front Controller – DispatcherServlet in Spring is based on Front

Controller pattern to ensure that incoming requests are dispatched to

other controllers.

Factory pattern – To create an instance of an object, BeanFactory is

used. This is based on Factory pattern.

View Helper – Spring has multiple options to separating core code

from presentation in views. Like- Custom JSP tags, Velocity macros

etc


https://www.baeldung.com/spring-framework-design-patterns#:~:text=In%20this%20tutorial%2C%20we'll,Proxy%20pattern

Popularity 8/10 Helpfulness 3/10 Language java
Source: Grepper
Link to this answer
Share Copy Link
Contributed on Feb 10 2023
Pragya Keshap
0 Answers  Avg Quality 2/10


X

Sign in with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.