自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除