Here's an Example
@EnableDiskstore(name="testDiskStore")
@Bean
PartitiontionRegionFactoryBean bean=new PartitionRegionFactoryBean()
bean.setRegion("testDiskstore") .
It gives an error testDiskstore not found , However if i dont do the above setting it works fine .