本文介绍了动态设置@EnableGemFireHttpSession regionName的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以在运行时动态提供GemFire regionName.当前,我们正在硬编码regionName"testRegion".示例代码如下.感谢任何帮助

Is there any way to provide GemFire regionName dynamically during runtime. Currently we are hardCoding the regionName "testRegion". Sample Code is below. Appreciate any help

@Configuration
@EnableGemFireHttpSession(poolName = "gemfirePool", regionName="testRegion")
public class TestConfig {

//Some Code here

}

推荐答案

是的,很好的时机!从 Spring Session到Apache Geode/Pivotal GemFire 2.0.5.RELEASE以及2.1.0.M1,现在都有.参见此处,或者,此处.

Yes, great timing! There is now as of Spring Session for Apache Geode/Pivotal GemFire 2.0.5.RELEASE as well as 2.1.0.M1. See here and alternatively, here.

我最近通过这些更改发布了公告(和博客),此处.

I recently made the announcement (and blog) with these changes, here.

这篇关于动态设置@EnableGemFireHttpSession regionName的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 01:29