Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to define the scope of a bean?



How to define the scope of a bean?..

Answer / Akhand Pratap Kaushal

In Spring Framework, you can define the scope of a bean using the scope attribute in the configuration file or annotation. The possible scopes are singleton (by default), prototype, request, session, application, and webSocket.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is compile time weaving?

1 Answers  


Explain the spring framework.

1 Answers  


How does spring do dependency injection?

1 Answers  


What is @componentscan in spring boot? : Spring Boot

1 Answers  


Which is the best way of injecting beans and why ?

1 Answers  


When are declarative and programmatic transaction management used?

1 Answers  


What is the purpose of using bindingresults?

1 Answers  


What does the joint point denote?

1 Answers  


What is servlet in spring?

1 Answers  


Why spring controller is singleton?

1 Answers  


What is autoproxy in spring?

1 Answers  


What is jdbc abstraction and dao module?

1 Answers  


Categories