摘要:
/* * URI:绝对路径 */ System.out.println("当前类ReadTest.class文件的URI\n" + ReadTest.class.getResource("")); System.out.println("当前classpath的URI\n" + ReadTest.c 阅读全文
posted @ 2016-06-30 18:29
蒲木杉
阅读(651)
评论(0)
推荐(0)
摘要:
/* * java工程下读取配置文件 * 1. rt.jar --> java.util --> ResourceBundle.class * 2. 配置文件后缀名必须为.properties,内容必须为键值对 * key1=value1 * key2=value2 * ... * 3. test. 阅读全文
posted @ 2016-06-30 18:27
蒲木杉
阅读(328)
评论(0)
推荐(0)
浙公网安备 33010602011771号