Merge remote-tracking branch 'origin/master'

This commit is contained in:
tiger_zhou 2023-07-26 11:21:01 +08:00
commit b6c89e3857

View File

@ -25,6 +25,7 @@ public class JsonConfig implements ApplicationRunner {
public HttpMessageConverters fastJsonHttpMessageConverters() {
FastJsonHttpMessageConverter converter = new FastJsonHttpMessageConverter();
converter.getFastJsonConfig().setWriterFeatures(Feature.WriteByteArrayAsBase64);
converter.getFastJsonConfig().setWriterFeatures(Feature.WriteEnumsUsingName);
converter.getFastJsonConfig().setReaderFeatures(JSONReader.Feature.Base64StringAsByteArray);
return new HttpMessageConverters(converter);
}