I ve below code :

@ResponseBody
public class ControllerGenericImpl<T extends EnterpriseEntity> implements ControllerGeneric<T> {

    @Autowired
    private ServiceGeneric<T> genericService;

getting error at -> Field genericService in ControllerGenericImpl required a single bean, but 12 were found: Action:

Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed.

This is coming in spring boot 3.4.1 in 3.4.0 or below it was working properly.

Comment From: SaeidKazemi78

Hi, please share more about your issue's detail . or send us gihub link of your project if it is publicly available .

Comment From: xeruvimov

I have a similar problem, but with beans of type java.util.Map. If I don't set @qualifier, all my Map beans are just empty and it causes NPE due to Map.get() returning null.

Comment From: snicoll

@kumardhrubajyoti and @xeruvimov please share a small sample we can run ourselves that reproduces the problem. You can attach a zip here or push the code to a separate GitHub repository.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: zyro23

looks like a duplicate of #34119

Comment From: snicoll

Thank you for trying to help @zyro23 but your comment switched off the feedback label that's waiting on a repro. It very well might be a duplicate but we'd like to hear from those that are affected one way or the other. Right now, the issue doesn't have enough details.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.