Is it possible to convert the following XML configuration to an annotation based one?
<bean id="myBean" class="my.package.MyBeanClass" scope="prototype" />
I'm using Spring 2.5.6.
You can use the @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
annotation.
@Service
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class CustomerService {
// ...
}