In my web spring application I create an instance with key word new as following. In my one of action class, following method exists.
new
publi
When you create an object by new, autowire\inject don't work...
as workaround you can try this:
create your template bean of MyBean
and create an istance in this way
context.getBean("myBean");
PROTOTYPE : This scopes a single bean definition to have any number of object instances.