Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ehcache.xml configure default cache #9

Open
hqtc123 opened this issue Sep 22, 2014 · 1 comment
Open

ehcache.xml configure default cache #9

hqtc123 opened this issue Sep 22, 2014 · 1 comment

Comments

@hqtc123
Copy link

hqtc123 commented Sep 22, 2014

参考第十二章的时候,项目运行出现了异常:
org.springframework.beans.MethodInvocationException: Property 'cacheManager' threw exception; nested exception is org.apache.shiro.cache.CacheException: net.sf.ehcache.CacheException: Caches cannot be added by name when default cache config is not specified in the config. Please add a default cache config in the configuration.

不知道是不是版本的问题。ehcache官方文档2.4版的说要在配置文件中加上一个 defaultcache :
http://ehcache.org/documentation/faq#what-does-the-following-error-mean-caches-cannot-be-added-by-name-when-default-cache-config-is-not-specified-in-the-config-please-add-a-default-cache-config-in-the-configuration

@jptiancai
Copy link

@hqtc123 试试最新版本的ehcache?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants