在ActionBlogic中读取本地properties资源文件中的数据

方法一:
       ResourceBundle resb1 = ResourceBundle.getBundle("application-messages");
       input.setRow(resb1.getString("info.default.pagerow"));

      缺陷:这种方法会受到本地系统语言的影响

方法二:应用terasoluna框架中的方法

       PropertyUtil.addPropertyFile("application-messages");

       input.setRow(PropertyUtil.getProperty("info.default.pagerow"));

原文地址:https://www.cnblogs.com/chengfang/p/2849797.html