json文件出现以下问题:

Expected value at 1:0 Expected value at 2:0 Expected value at xx:xx错误的解决,实测解决

解决方案:
1.原文件目录下右击->new file,新建config.json(随便起个名字,后缀是.json就可以);
2.把原来的.json文件内容copy到新建的config.json即可
3.把原文件删除,新建的config.json名字改回来

Expected value at 1:0 Expected value at 2:0 Expected value at xx:xx错误的解决,实测解决
ps:
如果没有设置配置文件编码的,别忘了右击文件->properties->编码改成utf-8
ps2:
修改配置默认文件(.json,.properties,db等一些列文件)编码格式方式:windows->preferences->general->content types->text
->java properties file 下面会有*.properties(locked),(eclipse中是小锁的图标+*.properties),
再把下面出现的default encoding改为utf-8,然后点右面的update,再ok就可以

 

Expected value at 1:0 Expected value at 2:0 Expected value at xx:xx错误的解决,实测解决
 

转载请注明出处

相关文章:

  • 2021-05-28
  • 2021-09-20
  • 2022-12-23
  • 2023-03-29
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-21
  • 2021-12-12
  • 2022-12-23
  • 2021-05-31
  • 2021-08-23
相关资源
相似解决方案