From 35e987cbd87e95fa88112fc38f0ae0428a1a9697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Fri, 9 Feb 2024 10:28:38 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E4=BF=AE=E6=AD=A3=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/cmhi/cf/misc/ObjectMapperProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/cmhi/cf/misc/ObjectMapperProvider.java b/src/main/java/com/cmhi/cf/misc/ObjectMapperProvider.java index 290b2b7..8918300 100644 --- a/src/main/java/com/cmhi/cf/misc/ObjectMapperProvider.java +++ b/src/main/java/com/cmhi/cf/misc/ObjectMapperProvider.java @@ -1,6 +1,7 @@ package com.cmhi.cf.misc; import com.fasterxml.jackson.databind.ObjectMapper; +import org.jetbrains.annotations.NotNull; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; @@ -10,7 +11,7 @@ public class ObjectMapperProvider implements ApplicationContextAware { private static ApplicationContext context; @Override - public void setApplicationContext(ApplicationContext applicationContext) { + public void setApplicationContext(@NotNull ApplicationContext applicationContext) { ObjectMapperProvider.context = applicationContext; }