post 提交json中有<或>,JSON parse error: Unexpected end-of-input in VALUE_STRING;

Blade 未结 1 676
dragon
dragon 剑童 2021-10-11 10:14

一、该问题的重现步骤是什么?

1. 用post提交

2. json中有<或>

3.JSON parse error: Unexpected end-of-input in VALUE_STRING; 


二、你期待的结果是什么?实际看到的又是什么?

期待能提交成功,实际上报错:JSON parse error: Unexpected end-of-input in VALUE_STRING; 

知道需要对接口放行,但是所有保存接口都有可能出现这样的问题,怎么配置以save结尾的skip-url

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

SrpingBlade boot版本。windows

四、请提供详细的错误堆栈信息,这很重要。

JSON parse error: Unexpected end-of-input in VALUE_STRING; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING\n at [Source: (PushbackInputStream); line: 1, column: 15] (through reference chain: com.tongtech.home.entity.HomeSchedule[\"title\"])

五、若有更多详细信息,请在下面提供。

1条回答
  • 2021-10-11 23:02

    把xss放行配置到你请求的这个api地址

    2 讨论(0)
提交回复