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

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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments