Skip to content

Support Springframework 5.x for MessageConverter & JsonView.#14

Merged
wenshao merged 1 commit intoalibaba:mainfrom
VictorZeng:main
Apr 19, 2022
Merged

Support Springframework 5.x for MessageConverter & JsonView.#14
wenshao merged 1 commit intoalibaba:mainfrom
VictorZeng:main

Conversation

@VictorZeng
Copy link
Copy Markdown
Collaborator

Support Springframework 5.x for MessageConverter & JsonView.

Fix #7.

PTAL @wenshao @oldratlee .

Configuration examples as follows:

@Bean
public HttpMessageConverter fastJsonHttpMessageConverter(){
    FastJsonHttpMessageConverter fastJsonHttpMessageConverter = new FastJsonHttpMessageConverter();
    FastJsonConfig fastJsonConfig = new FastJsonConfig();
    fastJsonConfig.setWriterFeatures(JSONWriter.Feature.PrettyFormat);
    fastJsonHttpMessageConverter.setFastJsonConfig(fastJsonConfig);
    return fastJsonHttpMessageConverter;
}

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 19, 2022

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 19, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How is FastJson2 integrated in Springboot?

5 participants