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

Blade 已结 2 2306
小明
小明 剑者 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条回答
  •  smallchill
    smallchill (最佳回答者)
    2020-06-03 21:57

    论坛内搜一下: “Invalid UTF-8 start byte 0xb9” 可以找到答案

    具体帖子地址:https://sns.bladex.cn/q-1391.html

    1 讨论(1)
  • 2020-06-04 09:15

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


    windows系统下javac使用utf8编码


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


    0 讨论(0)
提交回复