带有参数的写法
1定义
key = 请为用户{0}输入密码{1}
2.调用
private ResourceBundle mesgBundle = ResourceBundle.getBundle("messages");
String msg = mesgBundle.getString("mesgBundle");
label.setTxt(MessageFormate.formate(msg,"highgo","liuyuanyuan"));
3.输出
请为用户highgo输入密码liuyuanyuan