- cn.uhfun.sox.magic.base.string.Strings.substringBetween
org.apache.commons.lang3.StringUtils.substringBetween(java.lang.String, java.lang.String, java.lang.String)
- cn.uhfun.sox.magic.base.throwable.Exceptions.getCausalChain
com.google.common.base.Throwables.getCausalChain
- cn.uhfun.sox.magic.base.reflection.Annotations.annotationForMap
sun.reflect.annotation.AnnotationParser.annotationForMap
常规传值
@Data
public static class TestModel {
@JSONField(deserializeUsing = FastJsonStringToJavaObjectDeserializer.class)
@JsonDeserialize(using = JacksonStringToJavaObjectDeserializer.class)
private InnerTestModel innerTest;
}
@Data
public static class InnerTestModel {
private String test;
}
{
"innerTest": {
"test": "我是InnerTest.test"
}
}
Json字符串传值
{
"innerTest": "{ \"test\": \"我是InnerTest.test\"}"
}
- cn.uhfun.sox.magic.ex.serialize.FastJsonStringToJavaObjectDeserializer
com.alibaba.fastjson.parser.deserializer.ObjectDeserializer
- cn.uhfun.sox.magic.ex.serialize.JacksonStringToJavaObjectDeserializer
com.fasterxml.jackson.databind.JsonDeserializer