You are on page 1of 1

Bean tag parameters:

Id- unique identified for bean


Class- points to concrete class
Scope-efault singletone,prototype(instance is created every time the bean is
required), request(single instance is created on each http request), session ( bean is
created and lives during http session).
Init-method: name of the method called after the bean is created, useful to set state
of object when object is created
Factory-method: name of method used to create bean means I have to give method
to create instance of object and this method should have parameters
Destroy-method: this is name of method called after the bean is disposed
Lazy-init: this is set to true to create bean when its being called or used by program
from another instance call that requires the object.

You might also like