字符串转成对象时,遇到的转换异常

异常如下:

com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `int` from String "山东分公司的": not a valid Integer value

at[Source:(String)"{"success":true,"executed":true,"userWorkData":{"userCode":"CUST2017120215060387926","workProvinceId":null,"wCityId":null,"wDistrictId":null,"wAddressDetail":"北京东城区","wAddressCompanyName":"北京腾讯科技有限公司","wAddressTelephone":null,"wAddressMobile":"15326591256","workJob":"山东分公司的","workPost":"部门经理"}}"; line: 1, column: 269]

字符串转成对象时,遇到的转换异常_第1张图片







类型不匹配,源数据为String类型,接收时用了int,类型不匹配

你可能感兴趣的:(字符串转成对象时,遇到的转换异常)