问题:
项目打成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"