-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
feature: shared session for multi apollo portal #3786
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3786 +/- ##
============================================
- Coverage 50.10% 50.07% -0.04%
+ Complexity 2440 2439 -1
============================================
Files 479 479
Lines 14810 14810
Branches 1504 1504
============================================
- Hits 7421 7416 -5
- Misses 6866 6873 +7
+ Partials 523 521 -2
Continue to review full report at Codecov.
|
# Conflicts: # CHANGES.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's the purpose of this PR
shared session for multi apollo portal
Which issue(s) this PR fixes:
Fixes #3672
Brief changelog
add spring session support and configure the property
spring.session.store-type=none
on theapplication.yml
as a default valueHow to use
1. No session data-store(dufault)
clear all of the property
spring.session.store-type
on theproperties files(such as application-github.properties)
,environment variables
andsystem properties
2. Redis backed sessions
configure the properties
spring.session.store-type=redis
,spring.redis.*
on theproperties files(such as application-github.properties)
,environment variables
orsystem properties
3. JDBC backed sessions
configure the properties
spring.session.store-type=jdbc
,spring.datasource.*
on theproperties files(such as application-github.properties)
,environment variables
orsystem properties
configure the property
spring.session.jdbc.initialize-schema=always
on theproperties files(such as application-github.properties)
,environment variables
orsystem properties
to create the table automatically while first time startup and then configure the propertyspring.session.jdbc.initialize-schema=never
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.