diff --git a/src/main/java/club/joylink/xiannccda/configuration/JsonConfig.java b/src/main/java/club/joylink/xiannccda/configuration/JsonConfig.java index 0753b35..76f591a 100644 --- a/src/main/java/club/joylink/xiannccda/configuration/JsonConfig.java +++ b/src/main/java/club/joylink/xiannccda/configuration/JsonConfig.java @@ -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); }