package hello;
import java.io.IOException;
import java.util.Properties;
public class Main {
public static void main(String[] args) throws IOException {
// setting.properties
Properties props = new Properties();
props.load(Main.class.getResourceAsStream("/hello/setting.properties"));
String url = props.getProperty("url");
String env = props.getProperty("env", "local"); // default value
System.out.println(url);
System.out.println(env);
}
}