读取src下properties配置
try {String path = getClass().getResource("/").getPath();in = new BufferedInputStream(new FileInputStream(path+PROPERTIES));Properties p = new Properties();p.load(in);String url = p.getProperty("uws.connectUrl");System.out.println(url+"----------------------------url");} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();}
?