Este contenido no está disponible en el idioma seleccionado.
Chapter 3. Using Spring Session
3.1. Enabling Spring Session Support Copiar enlaceEnlace copiado en el portapapeles!
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.