Ways to declare bean from a static field?

Trương Duy

New member
Ways to declare bean from a static field?
A. FieldRetrievingFactoryBean
B. util:contant
C. All of the mentioned
D. None of the mentioned
 
Answer: c
Explanation: To declare a bean from a static field, you can make use of either the built-in factory bean FieldRetrievingFactoryBean, or the util:constant tag in Spring 2.x.
 

Tìm kiếm

Back
Top