Skip to content
New issue

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

fix: remove gson bean creation in spanner auto-configuration. #1241

Merged
merged 5 commits into from
Sep 6, 2022

Conversation

zhumin8
Copy link
Contributor

@zhumin8 zhumin8 commented Aug 26, 2022

Discovered from Spring Boot Doc that auto-configuration for Gson is already provided (doc, GsonAutoConfiguration). Configuration properties are also provided for customizing.

Removing the Gson bean creation in Spanner auto-configuration in favor of this one. This bean was original created in #937 for the conversion when dealing with JSON/ARRAY Spanner type.

  • review documentation if changes needed.

Copy link
Contributor

@elefeint elefeint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I did not know either.

@sonarcloud
Copy link

sonarcloud bot commented Sep 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@zhumin8 zhumin8 marked this pull request as ready for review September 6, 2022 14:41
@zhumin8 zhumin8 merged commit dedf6b1 into main Sep 6, 2022
@zhumin8 zhumin8 deleted the rm-gson-bean branch September 6, 2022 14:48
kateryna216 added a commit to kateryna216/spring-cloud-gcp that referenced this pull request Oct 20, 2022
…CloudPlatform#1241)

Discovered from Spring Boot Doc that auto-configuration for Gson is already provided (doc, GsonAutoConfiguration). Configuration properties are also provided for customizing.

Removing the Gson bean creation in Spanner auto-configuration in favor of this one. This bean was original created in GoogleCloudPlatform#937 for the conversion when dealing with JSON/ARRAY Spanner type.

Note: this change is backward compatible for users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants