在类的同目录下 新建一个url.properties文件
static {
Properties prop = new Properties();
InputStream in = ManageXmlModel.class.getResourceAsStream( "url.properties" );
try {
prop.load(in);
urlTarget = prop.getProperty( "url" ).trim();
} catch (IOException e) {
e.printStackTrace();
}
}