package egovframework.api; import java.io.IOException; import java.io.InputStream; import java.util.Properties; /** * Created by Administrator on 2021-03-25. */ public class PropertiesReader { private Properties properties; public PropertiesReader(String propertyFileName) throws IOException { InputStream is = getClass().getClassLoader().getResourceAsStream(propertyFileName); this.properties = new Properties(); this.properties.load(is); } public String getProperty(String propertyName) { return this.properties.getProperty(propertyName); } }