-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Ensure compatibility with Spring Session module split #9554
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
Conversation
Ironically enough, I was about to write the exact same thing. If we look at Spring Data, each store has its own auto-configuration and its own properties object. I can help but think this looks a bit nuclear given the state of the Spring Session project. Having said that, That makes each store with a configuration class and a configuration properties class. I think I prefer this option than pretending they are all managed together.
@vpavic what do you think? If you agree, would you like to get going and rework your PR in that spirit? |
@wilkinsona, @snicoll, thanks for the feedback. Before putting this PR together I also evaluated the separate So just to clarify, you'd like to remove the existing My only concern is how to handel |
Yes. Each
What about it? Rather than injecting the properties object, you can inject the environment and resolve the enum value. And then add manual metadata for that entry. It's a bit more work obviously but not that much. |
OK, not a problem, I just wanted to double check if I understood all the bits correctly before getting to work. Thanks for the feedback @snicoll, will update the PR soon. |
8554918
to
59dea58
Compare
This commit updates Spring Session auto-configuration to ensure compatibility with extraction of `SessionRepository` implementations into separate Spring Session modules.
59dea58
to
6238f8b
Compare
@snicoll I've updated the PR with separate Note that I also changed the existing approach, where Let me know what you think. In the meanwhile, @rwinch has resolved spring-projects/spring-session#806. |
Note that our build failed due to Spring IO Checks failing. We will need spring-attic/platform#622 to be resolved before the jars are published |
Here's the changes to move us onto Spring Session snapshots: https://github.com/wilkinsona/spring-boot/tree/session-snapshots. I haven't pushed it as it should probably go in at the same time as the changes in this PR. |
This commit updates Spring Session auto-configuration to ensure compatibility with extraction of `SessionRepository` implementations into separate Spring Session modules. See gh-9554
* pr/9554: Polish "Ensure compatibility with Spring Session module split" Ensure compatibility with Spring Session module split
Thanks all. @wilkinsona I've cherry-picked that commit @vpavic looking at your PR it looks like I've mislead you a bit. After having looked at the actual code change, I think keeping |
Yes, the change of removing Anyhow thanks for addressing this @snicoll! |
This PR updates Spring Session auto-configuration to ensure compatibility with extraction of
SessionRepository
implementations into separate Spring Session modules.See spring-projects/spring-session#806.