If you want to determine the name of the bean with which they will be registered in the DI container, you can pass the name in the annotation itself, for example. @Service ("employeeManager").
Then, using the code below, you can enable autwire by name
@Autowired @Qualifier("employeeManager") private EmployeeManagerService employeeManagerService;
tinku Jul 07 '16 at 7:00 2016-07-07 07:00
source share