@Configuration public class AppConfig {
@Bean public ClientService clientService() {
ClientServiceImpl clientService = new ClientServiceImpl();
clientService.addClientDao(new ClientDao());
return clientService;
}
In the example above, which statement is NOT true with regards to Spring Java configuration?
(select one)
- The declared bean is a singleton by default
- This bean might be wrapped by a proxy
- This bean cannot use a method starting with "add" to inject a dependency
- The bean is of type ClientService
Reveal Solution
Next Question