@Scope()
@Scope("singleton")
Only one instance of that bean
@Scope("prototype")
One new instance for each request
- when you want to guarantee that you get a new instance every time
@Scope("request")
a bean per HTTP request ( a lot like prototype, but longer than a prototype)
@Scope("session")
a bean for each session, as long as a session is alive
@Scope("globalsession")
a bean for each application (will be alive for the lifetime of the application