이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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
-
Note
Data Grid does not provide a default cache. To use Spring Session, you must first create a Data Grid cache.