ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How to build a query report (based on SQL Server Query) to get machines IP Addresses from Configuration Manager 2012 ?

user-image
تم إضافة السؤال من قبل Hossam Wael Elmosallamy , Microsoft Systems Engineer , Najran University
تاريخ النشر: 2016/06/28

In Spring framework Singleton and prototype are two common bean scope which is available on all Spring Application Context while request, however session and global session bean scope are only available on Web aware application Context like WebApplicationContext.

Default scope is Singleton, Singleton bean scope is like Singleton pattern in Java where only one instance of bean is created per Spring container. So no matter how many times you call getBean() method, same bean instance will be returned if its bean scope is declared as Singleton. While in case of prototype bean scope, every getBean() call creates a new instance of Spring bean. 

Request bean scope allows each HTTP request to have its own instance of bean created and supplied by Spring framework, while Session bean scope allows Web application to have bean instance per session basis. both of these bean scope are available on WebApplicationContext or any web aware application context. Last one which is global session bean scope is only applicable on portlet aware bean scope and allows bean instance per global session. In short Singleton vs prototype is an important which clearly segregate one instance to multiple instances of bean.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟