Exam4Training

What is the id of the declared bean? (Select one)

What is the id of the declared bean? (Select one)

import com.springsource.service.*;



@Configuration

public class AppConfig {

@Bean

public ClientService clientService() {

return new ClientServiceImpl();

}

}
A . clientService (starting with lower-case "c")
B . ClientService (starting with capital "C")
C . com.springsource.service.ClientService
D . com.springsource.service.ClientServiceImpl

Answer: A

Exit mobile version