The Spring Java configuration above is NOT correct. Why? (select one)

Posted by: Pdfprep Category: CoreSpringV3.2 Tags: , ,

The Spring Java configuration above is NOT correct. Why? (select one)

public class AppConfig {

public ClientService clientService() {

return new ClientServiceImpl();

}

}
A . The class should be annotated with @Configuration
B . The method should be annotated with @Bean
C . Both (a) and (b)
D . Neither (a) or (b)

Answer: C

Leave a Reply

Your email address will not be published.