What is the use of stereotypes in spring?



What is the use of stereotypes in spring?..

Answer / Ravi Prakash Mourya

Stereotypes in Spring are used to specify a default value for the type of bean that should be created. The most common stereotype is 'component', which can be used instead of explicitly specifying Singleton or Prototype.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

Why do we use aop in spring?

1 Answers  


How does spring mvc provide support for validation?

1 Answers  


Why spring is called loosely coupled?

1 Answers  


What is service layer in spring mvc?

1 Answers  


What is the use of cglib?

1 Answers  


What is spring framework?

1 Answers  


Why do we need spring mvc?

1 Answers  


What are the different properties the metadata translates into to make up the bean definition?

1 Answers  


How to handle exceptions in spring mvc environment?

1 Answers  


What is spring mvc interceptor and how to use it?

1 Answers  


Why interceptors are used in spring?

1 Answers  


What is the default autowiring mode?

1 Answers  


Categories