解决Mybatis-Plus中TypeHandler,实体中存的是List<Long>,但是查出来是List<Integer>
import com.fasterxml.jackson.core.JsonProcessingException;import com.fasterxml.jackson.databind.ObjectMapper;import com.fasterxml.jackson.databind.type.CollectionType;import org.apache.ibatis.type.BaseTypeHandler;import org.apache.ibatis.type.JdbcType.
原创
2021-03-17 17:39:41 ·
2535 阅读 ·
2 评论