Redis中取出值,转成对象

import com.fasterxml.jackson.databind.ObjectMapper;

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

 

posted @ 2019-05-16 15:45  huanghaunghui  阅读(1351)  评论(0编辑  收藏  举报