Posted by: Pdfprep
Post Date: December 30, 2020
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