public class PropertiesTest {
public static void main(String[] args) throws IOException {
Properties prop = new Properties();
ClassLoader classLoader1 = Thread.currentThread().getContextClassLoader();
InputStream resourceAsStream = classLoader1.getResourceAsStream("application.properties");
prop.load(resourceAsStream);
System.out.println(prop.get("test.my.config"));
}
}