properties文件中,使用${}不起作用
properties文件中:
base_url=http\://183.6.191.74\:8087
test_url=${base_ur}/test/test.do
测试mian方法中:
String str= PropertyUtils.getConfig("base_url");
System.out.println(str);
String str2= PropertyUtils.getConfig("test_url");
System.out.println(str2);
输出:
http\://183.6.191.74\:8087
${base_ur}/test/test.do
properties文件中,使用${}不起作用,或者说是变量不是用${}而是其他吗