Null key for a Map not allowed in JSON

柔光的暖阳◎ 2022-05-22 04:15 258阅读 0赞

今天遇到一个奇葩问题,百思不得其解,望各位大佬给予解答:

70

70 1

这样运行的时候报错,

警告: Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException: Could not write content: Null key for a Map not allowed in JSON (use a converting NullKeySerializer?); nested exception is com.fasterxml.jackson.core.JsonGenerationException: Null key for a Map not allowed in JSON (use a converting NullKeySerializer?)

70 2

70 3

这样的话,返回数据正常!baseResultMap对应的是上面的VoSysEnum.

求大佬们帮忙…

发表评论

表情:
评论列表 (有 0 条评论,258人围观)

还没有评论,来说两句吧...

相关阅读