OCT 1. 修正代码语法检查
This commit is contained in:
parent
fbd07a2ea9
commit
35e987cbd8
|
@ -1,6 +1,7 @@
|
||||||
package com.cmhi.cf.misc;
|
package com.cmhi.cf.misc;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.ApplicationContextAware;
|
import org.springframework.context.ApplicationContextAware;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
@ -10,7 +11,7 @@ public class ObjectMapperProvider implements ApplicationContextAware {
|
||||||
private static ApplicationContext context;
|
private static ApplicationContext context;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setApplicationContext(ApplicationContext applicationContext) {
|
public void setApplicationContext(@NotNull ApplicationContext applicationContext) {
|
||||||
ObjectMapperProvider.context = applicationContext;
|
ObjectMapperProvider.context = applicationContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue