Spring 整合Shiro时报错

图片说明org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in file [H:\MyWorkSpace-Eclipse.metadata.me_tcat\webapps\Spring_Shiro\WEB-INF\classes\applicationContext-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [H:\MyWorkSpace-Eclipse.metadata.me_tcat\webapps\Spring_Shiro\WEB-INF\classes\applicationContext-shiro.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException

nested exception is java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
这里说是这个方法找不到,你反编译看下你这个ehcache包中有没有这个方法,没有的话应该是你包没下好或者包的版本太低.

不会呀 我的Ehcache是最新的

好像是我的securityManager有问题 但有不知道问题出现在那里

反编译看下你的这个jar包,最根本的问题好像还是nested exception is java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException这个问题引起的。反编译看下里面有没有这个异常类.