Hi i am learning spring framework i came across the scope in tutorial that i am reading it said that if we declare a scope as prototype spring container create a new object for that class each time. so i have written a program to
test it but no luck. could any one please help me. My code is
Main class
Shape interface has a method draw() which is implemented by Circle class
Point class is fallow
My spring configuration file is as fallows
The bean references are printing
same (which should be different because it is prototype)
from sysout. And one more thing how to configure a bean(point) that i set a message specifically to it to the particular class(center).