JSON parse error: Can not construct instance of 错误
程序员文章站
2022-04-15 10:44:27
...
spring cloud 服务之间相互调用出错。
报错信息:
feign.codec.DecodeException: JSON parse error: Can not construct instance of com.mmtvip.message.ResponseMessage: no String-argument constructor/factory method to deserialize from String value ('无效请求!'); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of com.mmtvip.message.ResponseMessage: no String-argument constructor/factory method to deserialize from String value ('无效请求!')
at [Source: [email protected]; line: 1, column: 1]
解决方案:
将接口改为POST请求
@PostMapping("/xzh)
上一篇: MySQL如何修改用户密码以及如何重置root密码
下一篇: 如何重置mysql 密码的方法
推荐阅读
-
JSON parse error: Can not deserialize instance of java.lang.String out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.JsonM
-
Uncaught transport.js/parseResult() error: can't parse to JSON.
-
JSON parse error: Can not deserialize instance of java.lang.String out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.JsonM
-
JSON parse error: Can not construct instance of 错误