Redis中取出值,转成对象

import com.fasterxml.jackson.databind.ObjectMapper;

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

猜你喜欢

转载自www.cnblogs.com/huanghuanghui/p/10876018.html
今日推荐