关于ResourceBundle资源绑定的简单描述
public static void main(String[] args) throws Exception {//资源文件为Message_CN.propetties一般会专门将一个包用来存放本例中com.resource是专门用来存放资源文件的包。//资源绑定工具,专门为properties属性配置文件准备工具类//该配置文件需要是属性配置文件,并且该配置文件放在类路径当中,以类名方式对待。ResourceBundle bundle = ResourceBundle.getBundle(“c
原创
2020-08-08 16:32:35 ·
315 阅读 ·
0 评论