I need to inject an instance of java.utils.Properties into one of my beans. Is there a Spring class that will load the properties file and convert it to an java.utils.Properties instance, ready for injection?
java.utils.Properties
Yes, using <util:properties> (see documentation ).
<util:properties>
Example:
<!-- creates a java.util.Properties instance with values loaded from the supplied location --> <util:properties id="jdbcConfiguration" location="classpath:com/foo/jdbc-production.properties"/>
Source: https://habr.com/ru/post/1389371/More articles:@ Html.ValidationMessageFor not working - c #How to update only one record in DB2? - databaseHow to create lambda from lambda with parameter without executing .call in Ruby? - ruby ββ| fooobar.comAndroid bitmap: resources to display as 50dp - androidConvert constructor syntax - c ++When will sys.database_permissions contain a line with state = 'R'? - sqlGetting a phone number using ContactsContract in Android - doesn't work - javaDoes MediaElement.js support logic to support adaptive streaming? - mediaelement.jsApple Bonjour SDK for Windows - c #What are the overheads of a 3G connection to keep a socket open indefinitely - tcp-ipAll Articles