类 MapperUtils

java.lang.Object
com.cdkjframework.util.tool.mapper.MapperUtils

@Component public class MapperUtils extends Object
  • 构造器详细资料

    • MapperUtils

      public MapperUtils()
  • 方法详细资料

    • listToList

      public static <T, S> List listToList(List<T> list, Class<S> clazz) throws Exception
      List 对象映射
      参数:
      list - 转换值
      返回:
      返回结果
      抛出:
      Exception - 异常信息
    • entityToEntity

      public static <T, S> S entityToEntity(T t, Class<S> clazz) throws Exception
      单个对象映射
      参数:
      t - 实体
      返回:
      返回结果
      抛出:
      Exception - 异常信息