I am using ehcache as spring cache.
find the place where you define your config
like 'net.sf.ehcache.config.Configuration config = new net.sf.ehcache.config.Configuration()'
in my case i use annotations therefore i got this line in the code, in your case, maybe defined as bean inside the xml .
add the following :
Yeah i wondered too why it's not possible to give the enum only .. maybe in the next version... '
Worked for me .