富文本编辑器上传图片内容,jackson解析报错

Vue 未结 3 4224
jayden
jayden 2020-04-25 00:09

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

1. 富文本上传图片

2. 将内容传递到后端解析,参数内容

{"newsType":2,"newsTitle":"56102","newsContent":"

","><>><><>二、你期待的结果是什么?实际看到的又是什么?<>富文本特殊字符也能正常提交<><>三、你正在使用的是什么产品,什么版本?在什么操作系统上?<>><><>四、请提供详细的错误堆栈信息,这很重要。<>< src title="1587744470768976.png" alt="image.png">

消息不能读取:JSON parse error: Unexpected character ('\' (code 92)): was expecting comma to separate Object entries; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('\' (code 92)): was expecting comma to separate Object entries

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

image.png

最终提交内容:

{"newsType":1,"newsTitle":"爱仕达","newsContent":"

安达市大所大所多

","createUserName":"","createTime":"","1587730995634_80570":[],"$newsType":"评价资讯","$1587730995634_80570":""}">http://ctpspone.oss-cn-beijing.aliyuncs.com/upload/20200425/13491a27aeea4d437d5d8d24fb0b36b1.png\">

","createUserName":"","createTime":"","1587730995634_80570":[],"$newsType":"评价资讯","$1587730995634_80570":""}

添加失败。


3条回答
提交回复