类 JacksonUtils

java.lang.Object
com.github.aqiu202.util.JacksonUtils

public class JacksonUtils extends Object
  • 构造器详细资料

    • JacksonUtils

      public JacksonUtils()
  • 方法详细资料

    • createObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
    • toBytes

      public static byte[] toBytes(Object target)
    • toObject

      public static <T> T toObject(byte[] source, Class<T> targetType)
    • toObject

      public static <T> T toObject(byte[] source, com.fasterxml.jackson.core.type.TypeReference<T> targetType)
    • toJson

      public static String toJson(Object target)
    • toObject

      public static <T> T toObject(String source, Class<T> targetType)
    • toObject

      public static <T> T toObject(String source, com.fasterxml.jackson.core.type.TypeReference<T> targetType)
    • convert

      public static <T> T convert(Object object, Class<T> targetType)
    • convert

      public static <T> T convert(Object object, com.fasterxml.jackson.core.type.TypeReference<T> targetType)