zoukankan      html  css  js  c++  java
  • tomcat配置-接口400-Invalid UTF-8 start byte 0xbc

    问题:

    项目打成war包部署的时候,接口400了(开发环境可正常访问)

    如下:

    JSON parse error: Invalid UTF-8 start byte 0xbc; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Invalid UTF-8 start byte 0xbc↵ at [Source: (ByteArrayInputStream); line: 1, column: 462] (through reference chain: com.googosoft.model.WorkOrderDistribute["limitTimeName"])"

     参数:

     

     参数:

    {
      "baseData": "{"serviceUserList":["1363667783795724290"],"serviceTimeLimitCode":"8","startTime":"2021-03-01T04:00:00.000Z","endTime":"2021-03-17T04:00:00.000Z","chargeStandard":"EBC6E09A05834A80B1DE264A92DEF2C3","chargeStandardNumber":"1","chargeStandardNumberPrice":"10.00","unitPriceAndUnit":"","unitPriceAndUnitName":"10.00元/桶","leader":"1363667783795724290","unitName":"元/桶","unitPrice":"10.00","workOrderNo":"GD20210315163139108","limitTime":"4.0","limitTimeName":"加急单","personNumber":1}",
      "ifbase": "false"
    }

     解决:

    在bincatalina.bat文件中:

    在set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS%"后面加入:

    set "JAVA_OPTS=-server -Dfile.encoding=utf-8"

  • 相关阅读:
    day12-html(css)
    day-12- 前端 html
    python-day11 pymysql
    day11-mysql 练习题
    python-day11 Mysql 数据类操作
    python-day11 Mysql 数据类型
    python-day11-MYSQL 数据库及数据表
    最简单的checkbox, radio跟文字在一行
    前端压缩
    table td 设置宽高无效的问题
  • 原文地址:https://www.cnblogs.com/excellencesy/p/14539335.html
Copyright © 2011-2022 走看看