package jkcs; import java.util.Properties; import java.io.FileInputStream; public class dqpzwj { public static void main(String[] args) { // TODO Auto-generated method stub Properties pzwj = new Properties(); try { pzwj.load(new FileInputStream("src/jkcs/config.properties")); } catch(Exception e) { e.printStackTrace(); } String pzqd = pzwj.getProperty("qd"); System.out.println(pzqd); String pzqd_url = pzwj.getProperty("url"); System.out.println(pzqd_url); } }