Package org.springframework.util

Examples of org.springframework.util.DefaultPropertiesPersister.load()


    public static Properties readProperties(Resource propertiesFile) {
        PropertiesPersister propertiesPersister = new DefaultPropertiesPersister();
        Properties properties = new Properties();
        try {
            propertiesPersister.load(properties, propertiesFile.getInputStream());
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        return properties;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.