We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
建议整个JacksonUtil 使用一个ObjectMapper ObjectMapper本身线程安全 每次都要new 一个 增加GC 负担
public final static ObjectMapper mapper; static { mapper = new ObjectMapper(); mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); } 可以初始化为全局变量
The text was updated successfully, but these errors were encountered:
觉得技术不好的地方,欢迎pr。 项目以业务为主,技术很简单,一些实践的地方也的确很粗糙。
Sorry, something went wrong.
No branches or pull requests
建议整个JacksonUtil 使用一个ObjectMapper ObjectMapper本身线程安全 每次都要new 一个 增加GC 负担
public final static ObjectMapper mapper;
static {
mapper = new ObjectMapper();
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
}
可以初始化为全局变量
The text was updated successfully, but these errors were encountered: