perf[json]: export jackson mapper for spring

This commit is contained in:
godotg committed 2022-10-22 11:47:42 +08:00
1 parent 3fdd00dcaf
commit 30104a18ad
1 file changed
+2 -2
@@ -35,13 +35,13 @@ public abstract class JsonUtils {
/**
* 适用于任何场景下的json转换,只要在各个类方法中不调用configure方法,则MAPPER都是线程安全的
*/
private static final ObjectMapper MAPPER = new ObjectMapper();
public static final ObjectMapper MAPPER = new ObjectMapper();
/**
* 涡轮增压的jackson,会使用字节码增强技术
*/
private static final ObjectMapper MAPPER_TURBO = new ObjectMapper();
public static final ObjectMapper MAPPER_TURBO = new ObjectMapper();
static {
//序列化