Skip to content

Commit 22c8c69

Browse files
author
quding
committed
fix propertiesUtil
1 parent b4ce0fc commit 22c8c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Util-Demo/src/main/java/cn/mrdear/util/propsUtil/PropertiesUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static String getUserDirProperty(String key, String filename) {
3636
* @return 值
3737
*/
3838
public static String getClassPathProperty(String key, String fileName) {
39-
InputStream input = PropertiesUtils.class.getResourceAsStream(fileName);
39+
InputStream input = PropertiesUtils.class.getClassLoader().getResourceAsStream(fileName);
4040
return getPropertiesFromInput(input,key);
4141
}
4242

0 commit comments

Comments
 (0)