import com.fasterxml.jackson.databind.ObjectMapper;

//转成companyEntity
CompanyEntity company = mapper.convertValue(redisHandle.get(key), new TypeReference<CompanyEntity>() {
        });

 

相关文章: