-
使用的mapstruct报错
JSON parse error: Unexpected character (‘/’ (code 47)): maybe a (non-standard) comment? (not recognized as one since Feature ‘ALLOW_COMMENTS’ not enabled for parser);
nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected character (‘/’ (code 47)): maybe a (non-standard) comment? (not recognized as one since Feature ‘ALLOW_COMMENTS’ not enabled for parser)
at -
使用postman测试接口,报错如上;问题出现在"/"这个符号上。
-
如图:请求体里面有注释,导致json解析出现问题;

Mapstruct报错:JSON parse error: Unexpected character (‘/‘ (code 47)): maybe a (non-standard) comment
于 2021-10-26 11:41:02 首次发布
在使用Postman测试接口时遇到MapStruct解析JSON错误,问题源于请求体内的注释。错误信息提示由于不允许注释导致JSON解析失败。要解决此问题,需要检查并移除请求体中的非标准JSON注释,或者调整配置以允许JSON解析器接受注释。
5014

被折叠的 条评论
为什么被折叠?



