Does the Spring framework provide String constants to replace the "prototype" string literal value in the example annotation below?
@Service @Scope("prototype") public class CustomerService { ...... }
Thanks!
You can use the scope constants from Spring's BeanDefinition:
E.g.
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With