Redis中取出值,轉成對象

import com.fasterxml.jackson.databind.ObjectMapper;

//轉成companyEntity
CompanyEntity company = mapper.convertValue(redisHandle.get(key), new TypeReference<CompanyEntity>() {
        });
相關文章
相關標籤/搜索