Relax use of spring.session.store-type

This commit makes the "spring.session.store-type" property optional,
adding an additional check when it is not present that validates only
one supported implementation is available on the classpath.

As Spring Session has been modularized, the chance that multiple
implementations are available on the classpath are lower. When only
one implementation is present, we attempt to auto-configure it. When
more than one implementation is present and no session store is
configured, a NonUniqueSessionRepositoryException is thrown.

Closes gh-9863
This commit is contained in:
Stephane Nicoll
2017-09-13 11:20:06 +02:00
parent de47827eb4
commit 4670cc7795
14 changed files with 493 additions and 44 deletions

View File

@@ -1,2 +1 @@
spring.session.store-type=redis
server.session.timeout=5