项目打成jar包之后,不能直接通过fileName路径读取文件,需要通过
new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(Constant.CHINA_REGION_JSON_NAME), "UTF-8")
来读取
项目打成jar包之后,不能直接通过fileName路径读取文件,需要通过
new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(Constant.CHINA_REGION_JSON_NAME), "UTF-8")
来读取