今天遇到一个问题,获取properties配置文件中的中文时会出现乱码的情况

1.遇到的第一个问题,写入properties的中文出现乱码的情况 解决的办法:window-->perferences-->General(常规设置)-->content types-->Text-->java properties file 设置为utf-8,点击update后,再创建properties即可 2.当使用inputStream读取时 public Map<String, Str
相关文章
相关标签/搜索