adspace


How to embed java.util.properties in spring bean?

Answer Posted / Kapil Agari

You can embed a java.util.Properties object in a Spring bean by defining the Properties object as a field in your bean class, and annotating that field with @Value or @PropertySource.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between @controller and @restcontroller in spring?

556


What is lazy class?

490


How can you inject java collection in spring?

518