Originariamente inviato da Mitele
Salve ragazzi non riesco a capire la differenza sottile tra lo scope prototype e request,
mi sembrano identitici.....qual è la sottile differnza?
Non mi pare tanto sottile la differenza... Hai letto la documentazione ufficiale?

http://static.springsource.org/sprin...l/ch04s04.html

prototype: Scopes a single bean definition to any number of object instances.

request: Scopes a single bean definition to the lifecycle of a single HTTP request; that is each and every HTTP request will have its own instance of a bean created off the back of a single bean definition. Only valid in the context of a web-aware Spring ApplicationContext.