When I was working with CDI, I could use the @Produces
annotation to create a producer method to be called to choose which bean that implemented an interface would be injected by the @Inject
annotation .
Now I am working with Spring, but I didn't find anything similar. What I need to use to achieve the same result I had with the @Produces
annotation in CDI when I use the @Autowired
annotation?