国际化/多语言/资源文件
文章平均质量分 66
qq804702802
这个作者很懒,什么都没留下…
展开
-
java国际化资源文件使用
1.创建资源文件中文资源文件名:resourse_zh_CN.properties英文资源文件名:resourse_en_US.properties2.编写测试类import java.util.Locale;import java.util.ResourceBundle;public class Test { public static void main(Str原创 2015-03-04 13:25:51 · 1741 阅读 · 0 评论 -
Spring配置文件的使用
第一步:在applicationContext.xml配置: classpath:config.properties classpath:config.properties转载 2015-11-08 10:13:43 · 303 阅读 · 0 评论 -
Maven打包jar后文件读取资源文件
1. 读取jar包外面的文件在同一个文件夹(比如target)有conf文件夹,和test-0.1.jar文件。prop1.properties 放在conf里面,test-0.1.jar读取prop1.properties 的pro1.value的值 public static void fun1() throws IOException{ String str1转载 2015-11-16 22:23:39 · 4151 阅读 · 0 评论