- 博客(4)
- 收藏
- 关注
原创 For input string: “197,61“ 和 获取用户真实的ip地址
(第一张图)近期在生产环境遇到这个问题:For input string: “197,61” 如下图数字转换异常,意思就是原本传入的值应该是数值,但是现在变成了 “197,61” 导致数值转换失败,通过日志可以知道在 IpUtil 类的 getIp2long() 方法的第110行出现了问题,(看第二张图)既然这样就直接找到对应的地方;该代码的功能是将获取的ip转换成Long类型的数值返回,下面的main方法是还原异常写的测试,如果ip是这种(127.0.197,61)那就会出现:For input stri
2021-11-07 12:23:28 198
原创 Content type ‘application/octet-stream‘ not supported
Content type ‘application/octet-stream’ not supported
2021-08-28 10:26:48 5495
原创 JSON parse error: Cannot deserialize instance of `java.util.ArrayList
feign.codec.DecodeException: Error while extracting response for type [java.util.List<yunping.com.system.entity.SysRole>] and content type [application/json;charset=UTF-8]; nested exception is org.springframework.http.converter.HttpMessageNotReadable
2021-08-26 23:26:08 8360 1
原创 Error while extracting response for type [java.util.List<java.util.Map<java.lang.String,Object>>]
Error while extracting response for type [java.util.List<java.util.Map<java.lang.String, java.lang.Object>>] and content type [application/json;charset=UTF-8]; nested exception is org.springframework.http.converter.HttpMessageNotReadableExcepti
2021-06-27 15:26:01 14920
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人