OCT 1. 修正代码语法检查

This commit is contained in:
黄昕 2024-02-09 10:28:38 +08:00
parent fbd07a2ea9
commit 35e987cbd8
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}