关于Vue富文本组件 在springboot项目中一直报错 JSON parse error: Unexpected character ('\' (code 92)): was expecting comma to separate Object entries; nested exception is com.fasterxml.jackson.core.JsonParseException

报错内容:

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 e

 

组件: <edit 富文本

 

原因:由于springboot配置文件中配置了防止XSS攻击,导致过滤器阻断了富文本中带html形式标签的传输,将 xss excludes 中添加富文本更新和创建的链接就可以了

 

posted @ 2022-09-26 11:32  佩洛君  阅读(4713)  评论(0编辑  收藏  举报