update 优化魔法值

This commit is contained in:
zendwang
2022-07-04 11:30:43 +08:00
parent b9931cda30
commit 686068c8ed
6 changed files with 13 additions and 10 deletions

View File

@ -21,10 +21,10 @@ import java.io.IOException;
public class JacksonUtil {
private static Logger logger = LoggerFactory.getLogger(JacksonUtil.class);
private final static ObjectMapper objectMapper = new ObjectMapper();
private final static ObjectMapper OBJECT_MAPPER = new ObjectMapper();
public static ObjectMapper getInstance() {
return objectMapper;
return OBJECT_MAPPER;
}
/**