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

Upgraded Spring Boot to 2.4.x #43

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

sathishk
Copy link

I upgraded the source to Spring Boot 2.4.3. Faced two issues and resolved with few changes.

Problem 1:

java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
Fix:

Added allowPublicKeyRetrieval=true as part of JDBC Url. Ref: https://stackoverflow.com/questions/50379839/connection-java-mysql-public-key-retrieval-is-not-allowed

Problem 2:

java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" response header. To allow credentials to a set of origins, list them explicitly or consider using "allowedOriginPatterns" instead.
Fix:

This is because Spring Boot after 2.4.0 made changes to the way we configure CORS. Ref: https://stackoverflow.com/questions/65582177/spring-boot-cors-issue

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