Este conteúdo não está disponível no idioma selecionado.
Chapter 3. Using Spring Session
3.1. Enabling Spring Session Support
Data Grid Spring Session support is built on SpringRemoteCacheManager
and SpringEmbeddedCacheManager
. The Data Grid starter produces those beans by default.
Procedure
- Add this starter to your project.
- Add Spring Session to the classpath.
Add the following annotations to your configuration:
-
@EnableCaching
-
@EnableInfinispanRemoteHttpSession
-
@EnableInfinispanEmbeddedHttpSession
-
Data Grid does not provide a default cache. To use Spring Session, you must first create a Data Grid cache.