Bladex-Boot 版部署后调用API接口提交数据报:JSON parse error: Invalid UTF-8 start byte 0xb9

Blade 已结 2 2319
小明
小明 2020-06-03 14:58

JSON parse error: Invalid UTF-8 start byte 0xb9; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Invalid UTF-8 start byte 0xb9 at [Source: (PushbackInputStream); line: 1, column: 10] (through reference chain: org.springblade.modules.desk.entity.Notice["title"])

2条回答
  •  小明
    小明 (楼主)
    2020-06-04 09:15

    谢谢 smallchill :) 昨天百度了解java和windows字符集的问题后,通过如下这个百度的答案解决了:


    windows系统下javac使用utf8编码


    添加环境变量JAVA_TOOL_OPTIONS,值为-Dfile.encoding=UTF-8


提交回复