properties资源文件utils类

zwc_cc 11 0 JAVA 2020-08-13 09:08:01

资源文件中的路径解决问题 //鑾峰彇璧勬簮鏂囦欢鐨勮矾寰? String filepath = ContentMessage.class.getClassLoader().getResource("") .getPath(); filepath = filepath.substring(0, filepath.length() - 8); filepath = filepath + "resource/ApplicationResources.properties"; File file = new File(filepath);

用户评论
请输入评论内容
评分:
暂无评论