Related questions
Question 40 - 2V0-72.22 discussion
Refer to the exhibit.
Which two statements are correct regarding the HelloAutoConfig auto-configuration class when it is specified in the META-INF/spring.factories file? (Choose two.)
A.
A HelloService bean will be created from the helloService() method even if the HelloService.class is not in the classpath.
B.
A HelloService bean will be created from the helloService() method only when there is no other HelloService bean in the ApplicationContext.
C.
This auto-configuration class is used only when the HelloService.class is not on the classpath.
D.
This auto-configuration class is used only when the HelloService.class is on the classpath.
E.
A HelloService bean will be created from the helloService() method and will replace existing a HelloService bean in the ApplicationContext.
Your answer:
0 comments
Sorted by
Leave a comment first