String value = java.util.ResourceBundle.getBundle("mybuild").getString("build.number"); 其中: mybuild为属性文件名,如mybuild.properties build.number为键值