이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 4. Using Spring Session
4.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.