jedis.hmset error java.lang.Integer cannot be cast to java.lang.String solution

Description of the problem: use jedis.hmset to report an error

具体错误如下图java.lang.Integer cannot be cast to java.lang.String
insert image description here

identify the problem

1. Locate the problem according to the number of error code lines

Map userMap = new HashMap();
userMap.put("password",meterInfoDto.getImei());
userMap.put("is_superuser",0);
JedisUtils.setMap

Guess you like

Origin blog.csdn.net/wd4java/article/details/125501348