In the FastJson1.X version, I added FastJson to the SpringIOC container by configuring the following beans.
@Bean
public HttpMessageConverters fadtJsonHttpMessageConverters(){
FastJsonHttpMessageConverter fastJsonHttpMessageConverter = new FastJsonHttpMessageConverter();
FastJsonConfig fastJsonConfig = new FastJsonConfig();
fastJsonConfig.setSerializerFeatures(SerializerFeature.PrettyFormat);
fastJsonHttpMessageConverter.setFastJsonConfig(fastJsonConfig);
HttpMessageConverter<?> converter = fastJsonHttpMessageConverter;
return new HttpMessageConverters(converter);
}
But it seems to be no longer available in FastJson2. Is there any good way?
In the FastJson1.X version, I added FastJson to the SpringIOC container by configuring the following beans.
But it seems to be no longer available in FastJson2. Is there any good way?